I installed it and couldn't get it to work properly.
I'll continue to try in the morning.
Thanks, BigAl
I installed it and couldn't get it to work properly.
I'll continue to try in the morning.
Thanks, BigAl
Got it!
Replaced it with the PayPal Sidebox and it works great.
Thanks to both of you.
For those trying to add the Paypal link to the Logo sidebox I finally discovered how to do it!
Go to your defines file (logo_sidebox_defines.php) where you define LOGO_SIDEBOX_LINK
Now you will notice your when you define the link you use a single quote to enclose the link
define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');
The problem is that the paypal link also has single quotes in it, so as soon as the sidebox sees the second single quote, it assumes the define is closed.
So, to include single quotes in your define, PHP code requires you to put a backslash "\" before each single quote. This way it "ignores" that single quote as being the end of the define
So your define will go from
'#" onclick="javascript:window.open
('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');'
to
'#" onclick="javascript:window.open(\'https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside\',\'olcwhatispaypal\',\'toolbar=no,location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350\');'
Note that this is just for the Paypal href LINK ONLY. You will still need a defined image for the sidebox and the image sitting in my template\image directory.
Hope this helps people!![]()
When I click check link I get this message:
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /home/content/w/e/e/weezee/html/xxxxxx_admin/links.php on line 625
I am running Zen Cart v1.3.8a. I reuploading all the links manager files, before that, the line was 623
Clyde,
I am trying to change box header of the sidebox I couldn't remember where it was can you able to help me?
Hey there I got this working and the logo shows up BUT when I used the optional 'use the logo as a link' the logo doesn't show up but the link works, if you can find it by hovering around the box until you can click somehting.
Here is what I have so far.
define('BOX_HEADING_GIFT_CERTIFICATES', '');
//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '125');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '125');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('LOGO_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));
//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');
define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718');
//DO NOT edit below this line
if (GIFT_CERTIFICATES_LINK == '') {
define('LOGO_IMAGES', LOGO_IMAGE);
}else {
define('LOGO_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . LOGO_IMAGE . '</a>');
}
Awesome. If I didn't have this problem, this thread would've never been bumped so, it worked out!![]()
One more weird thing. When you click on the logo it is fine. It goes to the page where it is supposed to.
But the header text where it says Gift Certificates [MORE]. When you click it, it takes you to the Reviews page. I have my Reviews box up above.
Weird?
Bookmarks