Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 05/01/2020 : 05:21:57
Hi,
I'm just testing the great new articles feature. All works well but how can I remove the price (as there obviously isn't one) when articles appear on the products page?
Thanks,
Steve
|
Phil
ECT Moderator
United Kingdom
7715 Posts |
Posted - 05/01/2020 : 05:28:45
Hi Steve, Here's what I've done here - https://www.cmscientific.com/products/Latest%20Articles as well as adding the IS Article add custom css to the article products, I just added 'article' for the css Then in my css file added: .article .prodprice{display:none;} .article .prodid{display:none;} .article .detaillink{display:none;} .article .qbuybutton{display:none;} div.product.article{min-height: 50px;} .article ul.TabbedPanelsTabGroup{display:none;} You get the general idea yes?  * Database Migrations and Conversions* * ASP to PHP Cart Conversions**Contact Us**Buy The PHP Capture Card Plugin**Rate Our Services/View Our Feedback*
Edited by - Phil on 05/01/2020 08:58:44
|
ITZAP
Ecommerce Template Guru
Australia
1018 Posts |
Posted - 05/01/2020 : 06:13:33
No, there is a new parameter to define the Article page layout, for example ... $articlepagelayout='productimage, productname, navigation, dateadded, sku, description, socialmedia, previousnext'; This explains everything you need to know =>Gary 
Edited by - ITZAP on 11/14/2021 15:40:11
|
Marshall
Ecommerce Template Guru
USA
1916 Posts |
Posted - 05/01/2020 : 06:22:31
Good help page Gary. MarshallCENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
|
Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 05/01/2020 : 06:33:52
Thanks Phil & Gary,
But I already had my $articlepagelayout set like this:
$articlepagelayout='navigation,description,custom1,previousnext,emailfriend';
It addresses the price on the proddetail page but not the products page from what I can see...
(BTW - Gary I used your setup article and many thanks for taking the time to do that step by step demo)
|
Phil
ECT Moderator
United Kingdom
7715 Posts |
Posted - 05/01/2020 : 06:59:33
|
ITZAP
Ecommerce Template Guru
Australia
1018 Posts |
Posted - 05/01/2020 : 08:35:01
Yes, in your " includes.php" config file, you should have all these page layout parameters: (For a full list of valid elements, see this Help topic, which I presume you are aware of.) // Custom Page Layout for Recommended and Related pages $csproductpagelayout='productimage, productname, listprice, discounts, price, description';
// Custom Page Layout for products.php $productpagelayout='productimage, productname, listprice, discounts, price, description';
// Custom Page Layout for Product proddetail.php $detailpagelayout="productimage, productname, navigation, socialmedia, reviewstarslarge, dateadded, sku, description, manufacturer, options, listprice, discounts, price, quantitypricing, quantity, addtocart, checkoutbutton, reviews, previousnext";
// Custom Page Layout for Article proddetail.php (New v7.2.1) $articlepagelayout='productimage, productname, navigation, socialmedia, dateadded, sku, description, previousnext';
// SAMPLE PARAMETER to define Article Publisher identity. You edit meta itemprop="url" (absolute filepath to your business logo) and meta itemprop="name" (your Business Name) $publisher='<div class="articlepublisher" itemprop="publisher" itemscope itemtype="https://schema.org/Organization"> <div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject"> <meta itemprop="url" content="https:// itzap.com.au/pics/logo/itzap-web-logo.png"> </div> <meta itemprop="name" content="I.T.ZAP Website Design Works"> </div>';
// ZERO PRICE $xxPrice=''; // Remove the word Price $pricezeromessage='<span class="hide">0</span>';// If Price entered is $0.00, then hide the entire lineTo hide a $0.00 zero price on Recommended Products and Products.php pages, you just need this entry in your CSS file ... .hide {display:none !important}Gary 
Edited by - ITZAP on 05/01/2020 08:56:14
|
Phil
ECT Moderator
United Kingdom
7715 Posts |
Posted - 05/01/2020 : 08:39:07
Edited by - Phil on 05/01/2020 08:41:09
|
ITZAP
Ecommerce Template Guru
Australia
1018 Posts |
Posted - 05/01/2020 : 08:55:35
Hi Phil, personally I don't display "Buy" buttons on products.php If the Price is $0.00 but the "Buy" button is still displayed on products.php, then I don't have a answer for that. It is a question for Vince to consider. As for hiding the $0.00 zero price, the solution for that appears above. Gary 
|
Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 05/01/2020 : 09:39:25
[quote]As for hiding the $0.00 zero price, the solution for that appears above.[/quote]
I tried the above but can't find a way where the word Price: isn't also removed from products that do have a value above zero.
Edited by - Steved on 05/01/2020 09:39:58
|
ITZAP
Ecommerce Template Guru
Australia
1018 Posts |
Posted - 05/01/2020 : 09:50:05
Yes Steve, but why do you need the label " Price: " at all ? $89.95is obviously a buy price, don't you think ? Gary 
|
Phil
ECT Moderator
United Kingdom
7715 Posts |
Posted - 05/01/2020 : 09:51:20
|
Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 05/01/2020 : 11:29:47
Thanks Phil - that's it.
I must admit, the custom css entry had passed me by, so thanks for the heads-up there.
Regards,
Steve
|
Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 05/01/2020 : 11:48:08
[quote]Yes Steve, but why do you need the label "Price: " at all ?[/quote] Fair point Gary but I think it’s about the ability to style your pages however you wish  Thanks anyway for your work on this - we have quite a few articles of several thousand words that I imagine google will love the content of. SEO wise this feature is very important to our website. Regards, Steve
|
Vince
Administrator
42874 Posts |
Posted - 11/15/2021 : 03:22:48
Hi all I think after looking through this thread that what is needed is an extra class for articles, maybe "prodarticle" for the products pages and "detailarticle" for the product detail pages. As Phil points out you can use the custom CSS classes for this but it would be a bit of a pain having to do this for every article. So what you will end up with for the products pages would be... <div class="product prodarticle anycustomcss productid">...</div> ...and for the detail pages... <div class="proddetail detailarticle anycustomcss productid">...</div> If that seems ok with you all I'll get the changes done now. Vince Click Here for Shopping Cart SoftwareClick Here to sign up for our newsletterClick Here for the latest updater
|
Steved
Ecommerce Template Guru
United Kingdom
1022 Posts Pre-sales questions only (More Details...)
|
Posted - 11/15/2021 : 04:03:28
Thanks for the update Vince as I have quite a few articles. Happy to go with what you suggest and I'll keep an eye out for the changes you decide to implement. Steve
|
|
|