support

How to create a better URL which will work on my LIVE and TEST site code

Started by jaysbar, September 19, 2016, 03:24:05 AM

Previous topic - Next topic

jaysbar

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?

Basara

Quote from: jaysbar on September 19, 2016, 03:24:05 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)?

jaysbar

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>

Basara

Quote from: jaysbar on September 19, 2016, 11:10:40 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

jaysbar

Quote from: Basara on September 20, 2016, 03:02:28 AM
Quote from: jaysbar on September 19, 2016, 11:10:40 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)

Forum Rules Code of conduct
AbanteCart.com 2010 -