AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: jaysbar on September 19, 2016, 03:24:05 AM

Title: How to create a better URL which will work on my LIVE and TEST site code
Post by: jaysbar on September 19, 2016, 03:24:05 AM
Hi

I created a new block on my LIVE site. In this block I have a link like this:

<i class="fa fa-shopping-cart" style="color: #ffffff;">
<br /></i></a><a href="http://www.MySite.com/index.php?rt=checkout/cart">
<span style="color: #ffffff;">  CART &nbsp; &nbsp; </span>

But when backup my LIVE site and load it into my TEST site and go to Checkout after adding some products, the cart is empty. This is because my Test site has a different URL (http://www.MySite.com/Test/index.php?rt=checkout/cart).

Is there a way I can use a URL that will work on both sites without any editing?
Title: Re: How to create a better URL which will work on my LIVE and TEST site code
Post by: Basara on September 19, 2016, 07:51:47 AM
But when backup my LIVE site and load it into my TEST site

Hello. How did you create backup (in AbanteCart, in hosting panel or in phpmyadmin)?
Title: Re: How to create a better URL which will work on my LIVE and TEST site code
Post by: jaysbar on September 19, 2016, 11:10:40 AM
Hi

I create my files backup over FTP and my SQL backup in PHPmyAdmin.

I worked it out :) This works on my LIVE and TEST sites:

<i class="fa fa-shopping-cart" style="color: #ffffff;">
<br /></i></a><a href="index.php?rt=checkout/cart">
<span style="color: #ffffff;">  CART &nbsp; &nbsp; </span>
Title: Re: How to create a better URL which will work on my LIVE and TEST site code
Post by: Basara on September 20, 2016, 03:02:28 AM
SQL backup in PHPmyAdmin

Hello. I think you miss something on this stage. In PHPmyAdmin under the Options heading, ensure that you have selected, Add DROP TABLE / VIEW / PROCEDURE / FUNCTION and ensure that all of your tables are selected
Title: Re: How to create a better URL which will work on my LIVE and TEST site code
Post by: jaysbar on September 20, 2016, 05:28:31 AM
SQL backup in PHPmyAdmin

Hello. I think you miss something on this stage. In PHPmyAdmin under the Options heading, ensure that you have selected, Add DROP TABLE / VIEW / PROCEDURE / FUNCTION and ensure that all of your tables are selected

You mean here? (see attachment)