Cart Button link

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Aug 28, 2013 12:34 am
Reply with quote
Report this post
Hi,

I need some help.

My VM it's on Catalog Mode i dont need the default link cart button, i need configure this link to some menu option.

The template is store box, this is my site http://www.identifikt.com/web

Can you help me please.
User avatar
Fresh Boarder

GK User
Wed Aug 28, 2013 8:44 am
Reply with quote
Report this post
Please edit: /templates/gk_storebox/css/override.css and add at its end:
Code: Select all
#btnCart {
display: nonel
}


This will hide the cart button, which is easiest available solution :).

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Wed Aug 28, 2013 4:05 pm
Reply with quote
Report this post
Hi, thank you for your quick response,

But i need the cart button with a customized link.
User avatar
Fresh Boarder

GK User
Wed Aug 28, 2013 6:20 pm
Reply with quote
Report this post
Then You could edit file:
/templates/gk_storebox/layouts/default.php
line 113 and replace:
Code: Select all
<div id="btnCart" data-url="index.php?lang=<?php echo $lang; ?>&amp;tmpl=cart"><strong>Cart</strong></div>

with:
Code: Select all
<div id="btnCart" data-url="relative-link-to-your-subpage"><strong>Cart</strong></div>

If that will not work, then You could try to replace div with a element and use href to set targer link. just use same ID and do not place data-url.
User avatar
Moderator

GK User
Wed Aug 28, 2013 7:30 pm
Reply with quote
Report this post
Thank you!!!

This is the solution in same line 113 on /templates/gk_storebox/layouts/default.php

<div id="btnCart" onclick="window.location='YOUR_LINK_HERE';"><strong>Cart</strong></div>

Regards.
User avatar
Fresh Boarder

GK User
Thu Aug 29, 2013 6:53 am
Reply with quote
Report this post
True, its another way, even simpler :)
User avatar
Moderator


cron