Author Topic: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]  (Read 71193 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: 121
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: 2820
  • 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.8.13
php 7.1

m.davide82

  • Jr. Member
  • **
  • Posts: 121
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: 2820
  • 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.8.13
php 7.1

m.davide82

  • Jr. Member
  • **
  • Posts: 121
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: 2820
  • 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.8.13
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: 2820
  • 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.8.13
php 7.1

m.davide82

  • Jr. Member
  • **
  • Posts: 121
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