0.00 (0 votes)

It is very common problem after moving the demo website on the target server.
While creating your website, most of you are working on the project using the test server or subdomain. After introducing the whole content,usually you make backup of the site that is already finished in order to install the website on the live server.
Then it occur that Add-To-Cart button doesn't work properly - it redirects your current website to the URL you used for testing instead of adding the product to the cart.


What's the problem?

VirtueMart saved the previous demo URL in the configuration file, so you have to enter the correct URL address in this file.

How can you fix that?

Navigate to:  root/administrator/components/com_virtuemart/ and then edit virtuemart.cfg.php file.
Then go to 33 line, where the code starts with the following comment:
// these path and url definitions here are based on the Joomla! Configuration

Now you have to enter your website URL or replace these 2 lines of the code with:

define( 'URL', $mosConfig_live_site.'/' );
define( 'SECUREURL', $mosConfig_live_site.'/' );


Done!

Users' reviews

Total rating: (0 votes) Log-in to add review

Video Tutorials

EF4 Framework for Joomla! 3 - introduction

Joomla! 3 Quickstart Installation Guide

Speed up your website! Must watch video!

How to create Joomla article?

Joomla ReCaptcha - how to set up?

How to use Joomla editors?

How to display a module in Joomla article?

How to configure Joomla contact form?

How to check Joomla module positions names?

How to configure your language for Joomla 3?

How to create Joomla custom HTML module?

How to create Joomla menu?

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.