forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: friisco on May 16, 2008, 11:00:40 am

Title: I canīt figure out to change place of "shop_table"
Post by: friisco 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
Title: Re: I canīt figure out to change place of "shop_table"
Post by: Stramm 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;
Title: Re: I canīt figure out to change place of "shop_table"
Post by: friisco 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
Title: Re: I canīt figure out to change place of "shop_table"
Post by: Stramm 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.
Title: Re: I canīt figure out to change place of "shop_table"
Post by: friisco 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!!