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

gap

  • Beginner
  • *
  • Posts: 26
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #60 on: February 12, 2021, 17:45:31 pm »

Hi,
This is a great plugin, thank you!
There is one small bug I wonder how I could fix it:
If you use language variables in the custom field label and dropdown values: they will be translated rightly.
If you put this product into the cart: label is still translated, the value not - you will see the language variable.
For example you will see by the product in the cart:  color: VM_COLOR_RED

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10299
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #61 on: February 12, 2021, 20:15:21 pm »
try something like

change 
$html .='<span>'.vmText::_($productCustom->custom_title).' '.$item['custom_qvariant'].'</span>';

to
$html .='<span>'.vmText::_($productCustom->custom_title).' '.vmText::_($item['custom_qvariant']).'</span>';

file qvariant.php in the  plgVmOnViewCartVM3() function around line 85

might work
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gap

  • Beginner
  • *
  • Posts: 26
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #62 on: February 27, 2021, 15:38:12 pm »
Hi,
That fixed the problem, thank you!

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3491
  • VirtueMart Version: 3.8.9
Language keys are now converted in the standard version update 6.1 see page 1 of this thread
Regards
A

Joomla 3.9.27
php 7.4

TaDrik

  • Beginner
  • *
  • Posts: 15
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #64 on: September 18, 2021, 16:10:00 pm »
Helllo to all.
I am using the below contition. It is for installments and ads a % fee depanting on the number of installments.

No installments,6 installments@*1.079,12 installments@*1.125,18 installments@*1.155,24 installments@*1.195

It works fine ;as it displays the 4 options and by checking the option changs the proce. I shows also the modified price next to every option. Is it possible to show the monthly price that the costumer has to pay?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3491
  • VirtueMart Version: 3.8.9
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #65 on: September 18, 2021, 19:26:56 pm »
I don't think so with the way you are using this
Regards
A

Joomla 3.9.27
php 7.4

TaDrik

  • Beginner
  • *
  • Posts: 15
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #66 on: September 18, 2021, 21:15:46 pm »
I don't think so with the way you are using this
Thank you for your answer. You mean there is another way?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3491
  • VirtueMart Version: 3.8.9
Re: Simple VM3 Product Cart Variant Custom Field / Attribute Plugin [ FREE ]
« Reply #67 on: September 19, 2021, 11:37:52 am »
It would take some additional coding in the display template that would not be very flexible
Regards
A

Joomla 3.9.27
php 7.4