| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
wishlist help | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
wishlist help
I want to add the wishlist info in the OnePageCheckout page, but i don't know how to add it with the product list and other components.
I believe that i need to modify something in cart.php but don't know what. Can anybody help me ?
__________________
xcart 4.4.3 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: wishlist help
Can you clarify what you are looking to do?
You can use webmaster mode to determine what variables are assigned to your session at the moment, visit the cart page with it enabled to see what is assigned. To install this mod you will need to track down every instance of the wishlist and figure out what makes it tick. Describe your issue further and I will help you. Provide links and descriptions of what you want and where it should appear.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: wishlist help
My task is simple to put the wishlist in the checkout page. But i dont know how to modify the cart.php to initialize the wishlist in the checkout page.
The reason i want to do that is that i modified the wishlist to act as a "ask for offer" module. The customor adds to it and it sends a mail to the shop for a price offer.
__________________
xcart 4.4.3 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: wishlist help
Okay I have done some research. Looking at webmaster mode, on the wishlist page, I see the array that holds the wishlist is assigned to this variable: {$wl_products} try searching through cart.php for variations of mode=wishlist and $wl_products. That should put you on the right track at least.
When mode=checkout, I don't think I saw this variable initialized in webmaster mode, but you should double check for yourself. Our task is to get this variable initialized and populated with the data when mode=checkout. Now at least we have a goal, and it has a name. Let me know how far this gets you, and we will work further on it if necessary. BTW sounds like a cool mod you are doing, and a very creative way to use existing functionality! kudos.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#5
|
|||||||
|
|||||||
Re: wishlist help
i found the $wl_products array from the wishlist view. I tried initializing this variable in checkout but i was unable to find the code that does it. Im getting stuck in the cart.php logistics ...
__________________
xcart 4.4.3 |
|||||||
#6
|
|||||||||
|
|||||||||
Re: wishlist help
Hopefully I can shed some light. I have had projects where I have completely rewired cart.php, but it has changed since then.
see this? Code:
Start experimenting! what happens if you simply include the wishlist.php down there? If that fails crack open wishlist.php and see how it generates the variable array. Try simply copy pasting this code in and assigning the variable. PHP is not rocket science, but it is hard to get started with it if you are new. The best way to learn I have found, is to experiment. Another file to look in: include/func/func.cart.php I got lots of hits for "wishlist" from that file. I won't code this for you for free, but I will certainly help you to do it! The more you analyze what is happening in the logic, the better overall understanding you will have. Don't discount sections of the code because they don't apply to what you are doing, try to read and understand them as best you can. Sooner or later you will start connecting the dots and having "aha" moments.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#7
|
|||||||
|
|||||||
Re: wishlist help
After 3 days of hard work i've got it !!!!
__________________
xcart 4.4.3 |
|||||||
#8
|
|||||||||
|
|||||||||
Re: wishlist help
Congrats! That's always a great feeling.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#9
|
|||||||
|
|||||||
Re: wishlist help
1 question can i concatenate the 2 buttons ? the sent button from the wishlist and the checkout button ?
__________________
xcart 4.4.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|