| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Viewing "Add to Wish List" button at all times | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hello,
I am looking to set up the "add to wish list" button to all pages for all users (not just those who are signed in). If possible, when a person hits the add to wish list button and he/she is not a user, he/she should be redirected to become a member. After the membership is completed, he/she should be redirected to the "wish list" cart. If anyone could please help with this, it would be great. Thanks, David Saldana
__________________
4.4 Code:
|
|||||||||
#2
|
|||||||
|
|||||||
![]() You would need to replace the wishlist button code with an if statement similar to this:
{if $login eq ""} Show button but link to another page {else} Show actual wishlist button {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Do you know which file actually needs to be edited?
__________________
4.4 Code:
|
|||||||||
#4
|
|||||||
|
|||||||
![]() product.tpl for the product detail page
products_t.tpl for a multi-column product display products.tpl for a single column display
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Thanks for that. It was so easy to do and I highly recommend this mod which will allow your "add to wishlist" button to be shown at all times. If the customer is not logged in, it will redirect them to the registration page.
Add to product.tpl: Code:
After: Code:
__________________
4.4 Code:
|
|||||||||
#6
|
|||||||
|
|||||||
![]() Thanks for this very usefull and easy to implement mod!
![]()
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#7
|
|||||||
|
|||||||
![]() That is a helpful mod, however there is one problem. What if the user already has an account and just needs to log in. Instead of sending them to the register page, it should send them to a log in page where they will be met with instructions to register if they haven't already. How do you do that easily? I'm creating a my account page with a login form that will do the trick, but if there is an easier way to send them to login, I'd like to know about it.
__________________
xcart version 4.0.18 |
|||||||
#8
|
|||||||
|
|||||||
![]() The system has no idea if they are already registered or not when they aren't logged in, so sending them to a 'My Account' page is going to be your best solution.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Quick Note, if you are using the HTML Catalog generator, this mod will not work with those static pages.
__________________
4.4 Code:
|
|||||||||
#10
|
|||||||
|
|||||||
![]() Here's how I handled it: www.bambinibliss.com. And yes, I had problems when using the html generator.
__________________
Version 4.1.2 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|