Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

The universal solution "Continue Shopping Button"

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #41  
Old 09-16-2008, 08:46 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: The universal solution "Continue Shopping Button"

Yurij,

I sent you a PM with the hidden product url.

Thanks,
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #42  
Old 09-17-2008, 03:00 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by imexhouse
Yurij,

I sent you a PM with the hidden product url.

Thanks,

As i told problem was in "DSEFU" mods )))
Reply With Quote
  #43  
Old 09-17-2008, 03:17 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: The universal solution "Continue Shopping Button"

Thanks for looking into this.
I think it's better for me to give my customers a link that's already converted to an html form. That way, I won't have to deal with the issue.

Jack
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #44  
Old 09-17-2008, 03:27 PM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: The universal solution "Continue Shopping Button"

Yurij,

I went to skin1/main/product_details.tpl and commented out the part in red:

{if $product.forsale eq 'H'}
<TR>
{if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if}
<TD class="FormButton" nowrap>{$lng.lbl_product_url}:</TD>
<TD class="ProductDetails">{$catalogs.customer}/product.php?productid={$product.productid}{*&cat={$product.categoryid}*}</TD>
</TR>
{/if}

It seems to work well, and I don't end up with the &cat=253 at the end of the url string.

Can anybody see any downside to this modification?
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #45  
Old 09-18-2008, 12:16 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by imexhouse
Yurij,

I went to skin1/main/product_details.tpl and commented out the part in red:

{if $product.forsale eq 'H'}
<TR>
{if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if}
<TD class="FormButton" nowrap>{$lng.lbl_product_url}:</TD>
<TD class="ProductDetails">{$catalogs.customer}/product.php?productid={$product.productid}{*&cat={$product.categoryid}*}</TD>
</TR>
{/if}

It seems to work well, and I don't end up with the &cat=253 at the end of the url string.

Can anybody see any downside to this modification?


no, because:

product.php?productid=1111
<=>
product.php?productid=1111 &cat=0
<=>
product.php?productid=1111 &cat=0&page=0
Reply With Quote
  #46  
Old 09-18-2008, 03:56 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: The universal solution "Continue Shopping Button"

So, what you're saying is I shouldn't have any problems?
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #47  
Old 09-18-2008, 05:08 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by imexhouse
So, what you're saying is I shouldn't have any problems?

Yes. To view the product enough to know his ID.
Reply With Quote
  #48  
Old 09-21-2008, 08:02 PM
 
glsp glsp is offline
 

Member
  
Join Date: Dec 2007
Location: Northampton, MA
Posts: 27
 

Default Re: The universal solution "Continue Shopping Button"

I added a file "continue_shopping.tpl" in /skin1/buttons so I could use the Continue Shopping link at the top and bottom of my cart:
PHP Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_continue_shopping href="$back_url"

My store is straight forward, so the only pages a customer could come from that would make sense to return to are category pages and product pages, so in cart.php, I have:
PHP Code:
#
# Continue Shopping link
#
x_session_register("back_url");
$referrer $_SERVER['HTTP_REFERER'];
if (
strpos($referrer"home.php") || strpos($referrer"product.php"))
{
    
$back_url $referrer;
}
else if (!
$back_url) {
    
$back_url 'home.php';
}

$smarty->assign("back_url"$back_url);
# End Continue Shopping 
__________________
X-Cart Gold version 4.1.9

PS: This is what part of the alphabet would look like if Q and R were eliminated.
Reply With Quote
  #49  
Old 09-22-2008, 12:15 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by glsp
I added a file "continue_shopping.tpl" in /skin1/buttons so I could use the Continue Shopping link at the top and bottom of my cart:
PHP Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_continue_shopping href="$back_url"

My store is straight forward, so the only pages a customer could come from that would make sense to return to are category pages and product pages, so in cart.php, I have:
PHP Code:
#
# Continue Shopping link
#
x_session_register("back_url");
$referrer $_SERVER['HTTP_REFERER'];
if (
strpos($referrer"home.php") || strpos($referrer"product.php"))
{
    
$back_url $referrer;
}
else if (!
$back_url) {
    
$back_url 'home.php';
}

$smarty->assign("back_url"$back_url);
# End Continue Shopping 

strpos($referrer, "product.php") - will don't work with url rewrite mods (DSEFU, CDSEO and etc).
Reply With Quote
  #50  
Old 09-22-2008, 12:49 AM
 
glsp glsp is offline
 

Member
  
Join Date: Dec 2007
Location: Northampton, MA
Posts: 27
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by Yurij
strpos($referrer, "product.php") - will don't work with url rewrite mods (DSEFU, CDSEO and etc).
Yurij - There has been some discussion in this thread about interoperability with certain mods. I don't see how your comment adds to the the discussion. If this is something that concerns you, you could offer your own clever version.
__________________
X-Cart Gold version 4.1.9

PS: This is what part of the alphabet would look like if Q and R were eliminated.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:02 AM.

   

 
X-Cart forums © 2001-2020