Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: I canīt figure out to change place of "shop_table"  (Read 3368 times)

0 Members and 1 Guest are viewing this topic.

friisco

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
I canīt figure out to change place of "shop_table"
« on: May 16, 2008, 11:00:40 am »

Ola!!!

I am having a problem in to find wher I should find "shop_table".
At the moment the form is displayed at the top of the image and I would like to change to under the image!!!
The code in displayimage is:
Code: [Select]
<table class="shop_table">
<tr>
<td>
<form action="" method="post">
  Add product to shopping basket: <select name="item_id" class="listbox_lang"><option value="1">Box - Euro78.00</option></select>
<input type="hidden" value="37" name="pid" />
<input type="hidden" value="add_item" name="event" />
    <input type="submit" value="Add to the basket" class="comment_button" />
</form>
</td>
</tr>
</table>
but I canīt find in displayimage.php where coud I move this block so this will be displayed under the picture.
also have been check if in template.html or theme.php of my theme and I canīt figure out where is the "shop_table" supose to be.

Somebody can please send me a linh or give me a advise of where should I look  at!!!

Thankīs
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 6006
Re: I canīt figure out to change place of "shop_table"
« Reply #1 on: May 16, 2008, 02:07:49 pm »

it's in plugins/photo_shop/codebase.php -> function photoshop_add_item()

within that function find
Code: [Select]
$pic_data['html'] = $shop_data.$pic_data['html'];and change it to
Code: [Select]
$pic_data['html'] = $pic_data['html'].$shop_data;
« Last Edit: May 21, 2008, 10:07:47 am by Stramm »
Logged
my CPG sandbox: Version 1.4.18 with modpack running my Tentacle theme:
http://stramm.st.funpic.org/

friisco

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: I canīt figure out to change place of "shop_table"
« Reply #2 on: May 21, 2008, 10:04:32 am »

Ola... I did that and the pictine and the menu desapire!
A message ARRAY show where was supose to be the menu that says add to the basquet.

I have another question that made explain better what I need.

It is possible to set that customer can only buy the album? Would be the best if I can set the add to the basket button on top of each album that shows in the album list view. and not at the slide show.

Can you please tell me if that is possible?

Thankīs
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 6006
Re: I canīt figure out to change place of "shop_table"
« Reply #3 on: May 21, 2008, 10:09:14 am »

there was a typo in my above post, retry

And no, that's not how the shop's working. It's item based and pricing by album if you set that in config.
Logged
my CPG sandbox: Version 1.4.18 with modpack running my Tentacle theme:
http://stramm.st.funpic.org/

friisco

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: I canīt figure out to change place of "shop_table"
« Reply #4 on: May 21, 2008, 12:06:30 pm »

Ok... Now the shop_table is at the right place! Thanks.

I did set in configuration the album price. But beacause they can add to the basket in all pictures at slide show, the customers getting confuse.

If it is not possible to move the shop_table to the top of each album ... maybe is that somehow possible to set that user can only add to the basket one picture for each album in the same order? In that way they just have to change the ammount of albums in ORDER MENU.

Thankīs... very much for your time!!
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 21 queries.