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

Wondering if X-Cart will fit my project needs with the following....
 
Reply
   X-Cart forums > Considering X-Cart > Considering using X-Cart for my project
 
Thread Tools Search this Thread
  #1  
Old 05-21-2010, 10:03 AM
 
charlestwaters charlestwaters is offline
 

Newbie
  
Join Date: May 2010
Posts: 1
 

Default Wondering if X-Cart will fit my project needs with the following....

Hello all...

I have done a search and realize from what I have read in previous (2+ years old) posts that it is easier to integrate my website into X-Cart, instead of the other way around. Understood, but have a couple questions. First, here is my setup. I have www.site1.com which is a current website, html based, serving to the internet. I have www.site1.com/store which is my X-Cart installation.

I have added procuct #1, and have used the "Generate HTML Links" function, and that works completely flawlessly! However, once I click that button, it dumps me into my cart, which is also perfectly fine. My problem is that there is no "Continue Shopping" type button as there is in the cart. Here are my questions...

1) Has anyone done, or know if can be done, to add a "Continue Shopping" button on the shopping cart, OR leave the customer in the page they are in at www.site1.com!?

2) I have generated an HTML catalog, and when I am in the Checkout section, if I click "Continue Shopping", it dumps me back to www.site2.com/home.php. I have ticked the box that says return the user to dynamic page from html catalog. What am I missing?

So in a long story short, how easy / hard will it be to have www.site1.com populate the cart at www.site1.com/store and go back and forth!?

Thanks in advance!
__________________
License: Evaluation license
Add-Ons: None At This Time
Reply With Quote
  #2  
Old 05-24-2010, 04:07 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,099
 

Default Re: Wondering if X-Cart will fit my project needs with the following....

Hi Charlestwaters,

Thank you for taking interest in our software and welcome aboard!


> 1) Has anyone done, or know if can be done, to add a "Continue
> Shopping" button on the shopping cart, OR leave the customer in the
> page they are in at www.site1.com!?

The "Continue Shopping" button is on the cart page by default. You could remove it during your editing of the cart page template. Have you edited templates in your X-Cart installation? Or what do you mean by the "shopping cart"? What page are you talking about?


> 2) I have generated an HTML catalog, and when I am in the Checkout
> section, if I click "Continue Shopping", it dumps me back to
> www.site2.com/home.php. I have ticked the box that says return the user
> to dynamic page from html catalog. What am I missing?

You are missing nothing. It does return a visitor back to home.php page. If you would like to have it redirecting a visitor to some other page you will need to customize this part of X-Cart template accordingly.


> how easy / hard will it be to have www.site1.com populate the cart at
> www.site1.com/store and go back and forth!?

Not sure I got your idea right - could you please elaborate a bit more?

Alex
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote
  #3  
Old 05-24-2010, 07:56 AM
 
successco successco is offline
 

Advanced Member
  
Join Date: Apr 2005
Location: Washington USA
Posts: 42
 

Default Re: Wondering if X-Cart will fit my project needs with the following....

Quote:
Originally Posted by charlestwaters
Hello all...

I have done a search and realize from what I have read in previous (2+ years old) posts that it is easier to integrate my website into X-Cart, instead of the other way around. Understood, but have a couple questions. First, here is my setup. I have www.site1.com which is a current website, html based, serving to the internet. I have www.site1.com/store which is my X-Cart installation.

I have added procuct #1, and have used the "Generate HTML Links" function, and that works completely flawlessly! However, once I click that button, it dumps me into my cart, which is also perfectly fine. My problem is that there is no "Continue Shopping" type button as there is in the cart. Here are my questions...

1) Has anyone done, or know if can be done, to add a "Continue Shopping" button on the shopping cart, OR leave the customer in the page they are in at www.site1.com!?

2) I have generated an HTML catalog, and when I am in the Checkout section, if I click "Continue Shopping", it dumps me back to www.site2.com/home.php. I have ticked the box that says return the user to dynamic page from html catalog. What am I missing?

So in a long story short, how easy / hard will it be to have www.site1.com populate the cart at www.site1.com/store and go back and forth!?

Thanks in advance!

See the codes in the first post at http://forum.x-cart.com/showthread.php?t=39603&highlight=continue+shopping - you can very easily redirect from the cart by using a "Continue Shopping" button in the /store directory cart to anywhere you want to, by having the $back_url equal whatever you want, either hardcoded in the cart.php file or querying a database table from cart.php for a destination, as shown in the code examples.

If you get access to edit files in your demo/evaluation version, try adding a few lines of code from that post referenced above to your cart.php file. Test out the:
PHP Code:
$back_url "home.php?cat=".$last
line to see if it will let you use something like:
PHP Code:
$back_url "../index.php; 
specifically to see if it will work with the " ../ " to back out of the /store directory or not.

The other option would be to set it at:
PHP Code:
$back_url "www.site1.com/index.php; 
but that could get boring making the customers re-start over from page 1 (especially repeatedly).

If nothing else, if the only way IN to the cart (/store directory) is by adding a product to your cart, then just use a javascript back 2 (or 1) pages like:
PHP Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_continue_shopping href=$href|default:"javascript: history.go(-2);" title=$title style=$style js_to_href="Y"


Either this was too much or too little information, hopefully wasn't confusing. Point is yes, there are easy ways to set it all up to go back & forth between the /store sub-directory & your top level directory.

Overall, x-cart seems to be infinitely customizable with a little patience.

Cheers.
__________________
X-cart Gold 4.1.6
X-affiliate 4.1.6
Reply With Quote

The following user thanks successco for this useful post:
ambal (05-24-2010)
  #4  
Old 05-25-2010, 04:31 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,099
 

Default Re: Wondering if X-Cart will fit my project needs with the following....

successco, your post deserves a separate article in X-Cart Knowledge Base!
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote
Reply
   X-Cart forums > Considering X-Cart > Considering using X-Cart for my project


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 12:10 AM.

   

 
X-Cart forums © 2001-2018