| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to get public wishlist id without sending an email? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello,
Does anyone know how to get the public wish list URL without having to send an email? I want customers to be able to just copy and paste the URL to send via IM or to post to Facebook and Twitter, etc. I haven't been able to figure it out. I know the URL ends with /cart.php?mode=friend_wl&wlid={something here} I tried $wlid but that didn't work. Any help would be appreciated! Thanks.
__________________
X-Cart Gold 4.3.1 Military Support Shop :: Army Wife Clothing, Military Support T-Shirts |
|||||||
#2
|
|||||||
|
|||||||
![]() I was able to solve this myself. Here's the solution in case anybody wants to do the same in 4.3.1:
In skin1/modules/Wishlist/wl_products.tpl add at the bottom after the form for sending the Wish List: Code:
There may be a cleaner way to get that but it works for me as is.
__________________
X-Cart Gold 4.3.1 Military Support Shop :: Army Wife Clothing, Military Support T-Shirts |
|||||||
#3
|
|||||||
|
|||||||
![]() Well I thought this was a great idea & tried it in my x-cart version, works, good! Only one issue & I want to make sure it's just me... or not. When you visit the x-cart URL http://www.website.com/a/cart.php?mode=friend_wl&wlid=4a537c1ed8e512c09bd9e 2c130a02100 (example only) and you see the wishlist, do you see an "Add to Cart" button? or just the "Details" button?
I would think it would be best to see the "Add to Cart" button whether the visiting friend is logged in or not (which of course they probably wouldn't be logged in since they just clicked that public URL). Now I do have the setting for view product details before adding to cart checked (but I cannot find where to change that setting yet). However, I don't even know if that would have an impact on the "Add to Cart" button showing on this public wishlist URL any way, because by looking at the code from the include called ( File: /modules/Wishlist/wl_buttons.tpl ) on ( File: /modules/Wishlist/wl_products.tpl ) the section where the "Add to Cart" button would be displayed or not shows: PHP Code:
if $login and if $giftregistry eq "" before it's deciding to show the "Add to Cart" button or not... Of course I'm going to play around a bit with it & see if I can get it to show without being logged in, just wondering are you seeing the "Add to Cart" button on your x-cart version? I know mine is different. Thanks for your post & reply, it's a neat & good idea.
__________________
X-cart Gold 4.1.6 X-affiliate 4.1.6 |
|||||||
#4
|
|||||||
|
|||||||
![]() The add to cart button shows just fine for visitors viewing a friend's wish list, after the $login was commented out, like:
PHP Code:
But of course now there's another issue... the URL that the wishlist is on is not httpS:// it's just http:// . Should be https:// since it's in the cart.php & that should be secure (at least in my store). So changing: PHP Code:
to: PHP Code:
for secure https:// url. The final version I used is: PHP Code:
__________________
X-cart Gold 4.1.6 X-affiliate 4.1.6 |
|||||||
#5
|
|||||||
|
|||||||
![]() Glad you figured it out. I am using X-Cart for a site that doesn't really sell anything - I link to a lot of affiliate products and the "Wish List" feature is for my users to save a list of their favorite items for later browsing or to share with friends. Along with having the public URL visible, I also have a Post to MySpace and Post to Facebook buttons next to it:
Code:
__________________
X-Cart Gold 4.3.1 Military Support Shop :: Army Wife Clothing, Military Support T-Shirts |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|