Brilliant, thank you so much
created c_3.css and in it
.product-price span.sale-price {
display:none;
}
seemed to work like a charm
Thank you, thank you
Brilliant, thank you so much
created c_3.css and in it
.product-price span.sale-price {
display:none;
}
seemed to work like a charm
Thank you, thank you
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thanks, They are only in there with a quantity of "0" so a sold button shows instead of add to cart
Would be great to get your code to work on my template as that should sort out the source code problem still showing the price.
Can yours be adapted to show an image instead of price on listing and info pages in specified category?
I haven't tested it, but you could try replacing this:
with returning the HTML for the image.Code:return '';
orCode:return zen_image(whatever relevant parameters here);
Code:return '<img src="/your/server/images/folder/and/filename.jpg">';
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
ok so functions prices
$product_check = $db->Execute("select master_categories_id, products_tax_class_id, products_price, products_priced_by_attribute, product_is_free, product_is_call, products_type from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'" . " limit 1");
if ($product_check->fields['master_categories_id'] == 10) { // change '10' here to the category number
return '<img src="/your/server/images/folder/and/filename.jpg">';
}
dam did not work
if ($product_check->fields['master_categories_id'] == 3) { // change '10' here to the category number
return '<img src="http://www.artofrecycling.co.uk/images/8x8trans.gif" />';
}
Last edited by Congerman; 15 Jul 2016 at 07:40 PM.
When you say did not work. Please elaborate. Errors in logs directory? If you view the source code for the page is there a broken image or path? Etc...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
still just shows £0.00 in price field instead of the gif I directed it to in the return command
I know it can be done with the css file but if I can get this function to work it should care the source code problem still showing the price
source code says
<a class="product-name" href="http://artofrecycling.co.uk/shop/index.php?main_page=product_info&products_id=7">Library Armchairs.</a>
<div class="product-price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span class="sale-price" itemprop="price">£0.00</span>
</div>
Bookmarks