Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: shopping cart plugin - add to cart not show for zip files?  (Read 2794 times)

0 Members and 1 Guest are viewing this topic.

julala

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 55
    • Smileonthetiles
shopping cart plugin - add to cart not show for zip files?
« on: December 11, 2007, 04:03:34 pm »

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
« Last Edit: December 12, 2007, 08:21:31 am by GauGau »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: shopping cart plugin - add to cart not show for zip files?
« Reply #1 on: December 11, 2007, 08:13:02 pm »

Yes... makes sense...
to only show the shop dropdown for image files add in codebase.php right after
Code: [Select]
function photoshop_add_item($pic_data){
global $CONFIG, $SHOP_CONFIG, $lang_photoshop, $album;
the following
Code: [Select]
if ($pic_data['content'] != 'image') return $pic_data;

julala

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 55
    • Smileonthetiles
Re: shopping cart plugin - add to cart not show for zip files?
« Reply #2 on: December 11, 2007, 09:57:06 pm »

Beauty....works a treat.  Many thanks Straam.  :D
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 21 queries.