Forum

Questions and discussions

add to cart icon redirect to item page

Script's setup and configuration

add to cart icon redirect to item page

Postby sportphoto » Tue Jun 10, 2014 6:46 pm

Hi
Can anyone please tell me how to do this

when you click the small basket icon under the photos it will add this photo to your shopping cart
but
i like when you click this icon redirect you to photo page so buyers can choose " file or print " after add to cart
sportphoto
 
Posts: 27
Joined: Fri May 30, 2014 2:43 pm

Re: add to cart icon redirect to item page

Postby admin » Wed Jun 11, 2014 9:47 am

You should edit the template:
/templates/template[n]/item_list_flow.tpl

and replace the code:
Code: Select all
{if cartflow}<li id="hb_cart{ITEM_ID}" class="hb_cart" title="{lang.Add to Cart}" onClick="add_cart_flow({ITEM_ID},'{SITE_ROOT}')"></li>{/if}


with:
Code: Select all
{if cartflow}<li id="hb_cart{ITEM_ID}" class="hb_cart" title="{lang.Add to Cart}" onClick="location.href='{ITEM_URL}'"></li>{/if}
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 4 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.