Re: Shoppingcart/Freeship in Header support
Hi
I totally forgot about reading about that...
I've fixed that up and I've added text-align: center in my #cartHeader so all will be center... Just a few dress ups here and there but now I need to ad a link in between shipping qualify and the checkout button for a 'Some restrictions apply' link...
And then done... my boss likes it which is a :bigups:...
Thanks again for your help!!!!
Re: Shoppingcart/Freeship in Header support
Looking good! Since you have subtle rounded corners on many of your freestanding boxes, you might want to do the same for this. In all modern browsers (not including IE8 and older) these declarations added to #cartHeader {} will do it:
Code:
-moz-border-radius: .7em;
-webkit-border-radius: .7em;
border-radius: .7em;
Re: Shoppingcart/Freeship in Header support
Hey... you are amazing.... thanks I just added that in...:clap:
I really need to figure out how to add that url ref. in tpl_cart_header.php for the 'Some restrictions apply' link.
I can't figure out to add a url in php.... :frusty:
Any ideas???
Re: Shoppingcart/Freeship in Header support
or do I have to call it from another file that has the URL?
Re: Shoppingcart/Freeship in Header support
What kind of page is your text on? If it is a define page or one that has its own pagename, you can use
<a href="/index.php?main_page=whatever" >Some restrictions apply</a>
If it is an ez-page, use
<a href="<?php echo zen_ez_pages_link(23) ?>" >Some restrictions apply</a>
where 23 is replaced by your ez-page id.
Re: Shoppingcart/Freeship in Header support
Beauty... thanks
I was stumped with echo command and couldn't figure it out until this morning... I guess a fresh clear mind is all you need...
I got it working now and its complete...
For anyone that wants to see it in action here's the link:
http://store.printersparts.com/store/
Thanks again! :yes:
Re: Shoppingcart/Freeship in Header support
I'm trying to figure out how to hide the header cart on the shopping cart and checkout pages and after hours of combing the forums, haven't been able to come up with an answer. (I found a couple of similar questions, but they just said they "fixed it". Grrr!)
So far, I've tried adding
PHP Code:
<?php
if ($this_is_shopping_cart) {
echo TEXT_CART;
}
else{
require($template->get_template_dir('tpl_cart_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_cart_header.php');
}
?>
in tpl_header.php and then defining TEXT_CART without text (a sad attempt at a workaround, I know) but the cart still displays on the shopping cart page.
I would REALLY appreciate any assistance that you can lend.
I'm using Zen Cart v. 1.3.9f
Site Link: theburningbutterfly.com/shop
Mods installed: pretty much every mod known to Zen Cart and then some
Thanks in advance!
Crystal
Re: Shoppingcart/Freeship in Header support
The home page is the only one that has a $this_is_ variable tracking it. All other pages need to use something like
PHP Code:
if($current_page_base != 'shoppingcart'){
require($template->get_template_dir('tpl_cart_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_cart_header.php');
}
"if $current_page_base is not equal to 'shoppingcart'... "
Re: Shoppingcart/Freeship in Header support
For the whole set of pages, something like
PHP Code:
if(!in_array($current_page_base, explode(',', 'shoppingcart,checkout_shipping,checkout_whatever,checkout_success'){
require($template->get_template_dir('tpl_cart_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_cart_header.php');
}
Re: Shoppingcart/Freeship in Header support
Woot! Woot! Thanks so much! I would have never thought to use that statement.
After playing around with it a little, the statement that I used to make the Shopping Cart in the header not appear on the shopping cart and check out pages is:
PHP Code:
<?php
if (!in_array($current_page_base,explode(",",'shopping_cart,checkout,checkout_confirmation,fec_confirmation')) )
require ($template->get_template_dir('tpl_cart_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_cart_header.php');?>
I just put it in my tpl_header.php file where the original shopping cart code was.
Thanks again - you rock!