shopping cart plugin - add to cart not show for zip files? shopping cart plugin - add to cart not show for zip files?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

shopping cart plugin - add to cart not show for zip files?

Started by julala, December 11, 2007, 04:03:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

julala

Hi there

Is there a small code hack that can be applied so that the "Add image to shopping cart" line does not show above the item if the item is a zip file?

(i.e. I have pictures and zip files in the same album and only want the pictures to be able to be added to the shopping cart) *does that make sense?*

Thanks

Julia

Stramm

Yes... makes sense...
to only show the shop dropdown for image files add in codebase.php right after
function photoshop_add_item($pic_data){
global $CONFIG, $SHOP_CONFIG, $lang_photoshop, $album;

the following
if ($pic_data['content'] != 'image') return $pic_data;

julala