support

Author Topic: How to create a better URL which will work on my LIVE and TEST site code  (Read 4599 times)

Offline jaysbar

  • Full Member
  • ***
  • Posts: 139
  • Karma: +13/-5
    • View Profile
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?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5838
  • Karma: +275/-2
    • View Profile
Re: How to create a better URL which will work on my LIVE and TEST site code
« Reply #1 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)?

Offline jaysbar

  • Full Member
  • ***
  • Posts: 139
  • Karma: +13/-5
    • View Profile
Re: How to create a better URL which will work on my LIVE and TEST site code
« Reply #2 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>

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5838
  • Karma: +275/-2
    • View Profile
Re: How to create a better URL which will work on my LIVE and TEST site code
« Reply #3 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

Offline jaysbar

  • Full Member
  • ***
  • Posts: 139
  • Karma: +13/-5
    • View Profile
Re: How to create a better URL which will work on my LIVE and TEST site code
« Reply #4 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)

 

Powered by SMFPacks Social Login Mod