Author Topic: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]  (Read 79411 times)

shanel

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #45 on: August 15, 2018, 16:46:51 pm »
HI ,
I need help.
I updated VM version to 3.4.12.
now after i choose one from the dropdown , it doesn't change the price.

please help...

you can see it not working here : www.shel-siet.co.il

 please please help.
thanks

m.davide82

  • Jr. Member
  • **
  • Posts: 132
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #46 on: October 08, 2018, 16:39:54 pm »
Hello,

after an update, if I put each record in each line, in frontend I see:



How can I solve it?


Thanks,
Davide

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2900
  • VirtueMart Version: 3.4
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #47 on: October 08, 2018, 18:23:09 pm »
I have no idea - you have provided no information to help even understand your issue.
regards
A

Joomla 3.9.1
php 7.1

m.davide82

  • Jr. Member
  • **
  • Posts: 132
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #48 on: October 08, 2018, 18:42:43 pm »
Hello,

thanks for your answer.

If I write the records like this:
Record1, Record2, Record 3

Everything is ok.

But, when I write:

Record 1,
Record 2,
Record 3

I have the problem I mentioned above.

In the version 1 of the plugin, everything was working right.


Thanks in advance.
Davide

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2900
  • VirtueMart Version: 3.4
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #49 on: October 08, 2018, 21:14:18 pm »
Those characters are encoded carriage returns and line breaks

I was unaware that they were ever handled in the parameters.

They should not be there imho or, you can code the plugin to handle them
regards
A

Joomla 3.9.1
php 7.1

m.davide82

  • Jr. Member
  • **
  • Posts: 132
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #50 on: October 10, 2018, 10:49:41 am »
Solved using a str_replace after line 29.

Code: [Select]
$text = str_replace(array("
","\n", "\t", "\r"), '', $text);
Thanks.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2900
  • VirtueMart Version: 3.4
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #51 on: October 10, 2018, 16:59:36 pm »
Yes - that will do it  :)

Thank you for the update - glad you got it solved
regards
A

Joomla 3.9.1
php 7.1

Radek_cz

  • Beginner
  • *
  • Posts: 1
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #52 on: November 15, 2018, 10:54:42 am »
Hi,
can you add a small image to the value? Thank you

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2900
  • VirtueMart Version: 3.4
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #53 on: November 15, 2018, 18:01:53 pm »
I have no intention of adding any images - you can develop it yourself as the plugin is free for you to adjust as you see appropriate for your purposes
regards
A

Joomla 3.9.1
php 7.1

m.davide82

  • Jr. Member
  • **
  • Posts: 132
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #54 on: November 26, 2018, 11:19:34 am »
Hello,

the problem came back.

Now when I add to the cart the product, I see



I used this code:
Code: [Select]
$text = str_replace(array("
","\n", "\t", "\r"), '', $text);
Any idea on how can I solve this?


Thanks,
Davide

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2900
  • VirtueMart Version: 3.4
Still Free to al users
regards
A

Joomla 3.9.1
php 7.1

SteP[IT]

  • Jr. Member
  • **
  • Posts: 199
  • Independent Websites Builder
    • MMC Edizioni - Italian Publisher (First Class PaperBooks)
  • VirtueMart Version: 3.4.3
I installed VM 3.4.3 and now it seems the plugin doens't work anymore.

I have set the plugin to show those prices:

Licenza 1 utente@=210@11-1,
Licenza 2 utenti@=420@11-2,
Licenza 3 utenti@=615@11-3

but the product price does not change when selecting one of those values.
Adding to cart you get the right variant description added (ie "Licenza 1 utente") but it adds the base product price
Any hint?
J 3.9.2 - VM 3.4.3

MMC EDIZIONI - Italian High-Quality PaperBooks Publisher
Site: https://www.mmcedizioni.it

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2900
  • VirtueMart Version: 3.4
The latest version I am testing is 3.4.5 and everything is working perfectly

The plugin has also been tested on previous versions and was working as designed.

However it looks as though you specify the first variant as a price adjustment so when the page loads - the variant is not being shown on page load

from my testing - It does add the correct value to cart

Are you saying that this behaviour was different in older versions of VM, because from my testing - it has always functioned in this manner
 
regards
A

Joomla 3.9.1
php 7.1