Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Not possible to add a picture to the shopping cart if selected after a search  (Read 4949 times)

0 Members and 1 Guest are viewing this topic.

Catman

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14

Hello,

I'm using the photo_shop plugin for my gallery.  Everything seemed to work fine, but yesterday I discovered that when I start searching for a picture, it is not possible to add the found picture(s) to the cart. But it is possible to add the same picture to the cart when I access it through the album. I have done the same thing on a test server, with the same result. Then I went to http://stramm.st.funpic.org/ and tried to do the same. I searched with the keyword "sea" I found 1 picture, but again it was not possible to add the picture to the cart. Seems this is a bug because it is possible to reproduce it on several systems.

Regards

Frank
« Last Edit: January 29, 2007, 07:23:17 pm by Stramm »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

known issue, that's due to way the search system works.

Catman

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14

Thank's for youre reply;

Is there any workaround for this issue? Or is there any hope for the near future that this issue can be solved?

Kind regards

Frank
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

no workaround
if this will be changed... hmm, I do not know. The plugin relies on the main app to handle over the pic_id. The search system however uses cookies to save the search result.

??? Quick fix possibly is to disable displaying the shop for the search meta album

Catman

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14

It's a pity, because searching, and then adding the found picture(s) to the cart was the main goal. The excellent search function in Coppermine made me start using it. Maybe someone else has a good idea?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

there's a possibility, but you'll lose your search meta album once you've added a pic to the basket

codebase.php
find
Code: [Select]
global $CONFIG, $SHOP_CONFIG, $lang_photoshop;replace with
Code: [Select]
global $CONFIG, $SHOP_CONFIG, $lang_photoshop, $album;
find
Code: [Select]
<form action="{$REFERER}" method="post">replace with
Code: [Select]
<form action="{$referer}" method="post">
above
Code: [Select]
$shop_data =  <<<EOTadd
Code: [Select]
($album == 'search') ? $referer = "displayimage.php?pos=-{$pic_data['pid']}" : $referer = null;

Catman

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14

 :D Thank you very much; this is working fine. It is very close to what I want.

Kind regards

Frank
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.