Recent Posts

Pages: [1] 2 3 ... 10
Virtuemart Development and bug reports / Re: empty cart
« Last post by marvays on Today at 10:26:52 »
I'm sorry. I didn't give the address. Web is here:
Virtuemart Development and bug reports / Re: empty cart
« Last post by marvays on Today at 10:25:49 »
I have sh404sef and setup this always without www.
Virtuemart Development and bug reports / Re: empty cart
« Last post by Jörgen on Today at 10:21:27 »
It sounds like conflict with www.sitename and sitename without www. Do You have a good .htaccess redirect to either sitename or www.sitename ? Opening sessions, cart is stored in session, with different URL gives different sessions and next visit to the site shows an empty basket.

Jörgen @ Kreativ Fotografi
The code do not set the PATH VMPATH_ADMIN you need to add

Code: [Select]
//just to load virtuemart constants
if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php');

All this is already registred when loading the vmConfig

if (!class_exists('VmModel')) require (VMPATH_ADMIN .  '/helpers/vmmodel.php');
 if (!class_exists('vRequest')) require (VMPATH_ADMIN .  '/helpers/vrequest.php');

So remove your old code and add my code
Virtuemart Development and bug reports / empty cart
« Last post by marvays on Today at 07:13:31 »
Please help me.
For some reason, at one shop constantly angry cart. Sometimes all items disappear from the cart. Other times, only some will disappear. I have caching turned off. But that didn't help.
The only thing I can think of is that I have an old version of VM. . . specifically VirtueMart 3.4.2

customers write for example:
I put the goods into the basket, then I do something else and when I want to return to it the basket is empty and I have to start new. For other sites, your cart will remain saved even if I turn off my computer and can return to it at any time.
I said to use child product, because each child have by default own stock.
For me your problem was to have different stock for same SKU, So this it the only  solution i know (without core hacks).
Wiht my plugin, it's certainly with some PHP code, to only display the right location child (i already implemented a redirect to first child for eg. for a customer to never show parent details).
To do this in PHP, you have to use a session variable(for eg. as currency selector) so you know the chosen user selected location to display the right child.
General Questions / Re: Cant load 3rd party module after VM upgrade
« Last post by kratzi on Yesterday at 22:32:57 »
The code looks as following:

Code: [Select]
//just to load virtuemart constants
require_once JPATH_ADMINISTRATOR.'/components/com_virtuemart/helpers/config.php';

if (!class_exists('VmModel')) require (VMPATH_ADMIN .  '/helpers/vmmodel.php');
 if (!class_exists('vRequest')) require (VMPATH_ADMIN .  '/helpers/vrequest.php');

Thank you
Product pricing / show total price without discount (coupon) calculation
« Last post by 6.522 on Yesterday at 22:28:41 »
Hello, how can I modify the VM calculations to show (everywhere) order total price without coupon discount. In the VM 2.6 it was quite simple. I've commented out the salesPriceCoupon in the calculationh.php (as below)

Code: [Select]
//The coupon handling is only necessary if a salesPrice is displayed, otherwise we have a kind of catalogue mode
if($this->_currencyDisplay->_priceConfig['salesPrice']){$this->_cartPrices['billTotal'] = $this->_cartPrices['salesPriceShipment'] + $this->_cartPrices['salesPricePayment'] + $this->_cartPrices['withTax']; //+ $this->_cartPrices['salesPriceCoupon'];

But in VM 3.4 it's more tricky. I'm using AwooCoupon Pro as my only payment method, so discounts are 100% (I don't want to have 0s). Users "buys" products using their account balances (gift certificates).

I have Virtuemart 3.4.2 and Joomla 3.9.6.

Studio 42.
yes different available quantity per location.

If I create a custom field other than price will it have its own stock as well? or is this CHILD products for example?
Pages: [1] 2 3 ... 10