News:

Looking for documentation? Take a look on our wiki

Main Menu

Is it possible to add attributes to products in Virtuemart 3

Started by jimleeder123, February 06, 2015, 17:24:02 PM

Previous topic - Next topic

GJC Web Design

simple solution - forget the @ -- cheese is + 2 quid - what is the "at" for?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AH

GJC the @ enables the drop variants to be "exploded"

IN the dropbox plugin

http://forum.virtuemart.net/index.php?topic=127362.0


You can use any other character for this

But you need to change the code to something that works for you 


Here

plugins/vmcustom/drop/drop.php

$valueWithPrice = explode('@', $valuesWithPrice);


AND here

plugins/vmcustom/drop/tmpl/default.php

Quote$valueWithPrice = explode('@', $valuesWithPrice);

Note that the XML file explanation will also be incorrect if you use a different character so you could change that too.
Regards
A

Joomla 3.10.11
php 8.0

jimleeder123

Ok thanks a lot, could you give me the file path to the xml file please?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

jimleeder123

The whole of the "drop" folder has its permissions on the server stuck to not being able to write so I can't edit any of the files. The server is using Plesk 10.3.1. Any idea how to fix?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

AH

Change in the zip file and re-install!

The xml ile is in the zip - just look in there
Regards
A

Joomla 3.10.11
php 8.0

jimleeder123

I'm doing this now (since I decided to do all other design parts done first) so what should I edit in the XML file if I change to symbol to "/"?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

GJC Web Design

QuoteGJC the @ enables the drop variants to be "exploded"

exploding cheese?   Not touching this plug then...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jimleeder123

Wheres the cheese come from?

On a more serious note, Hutson where do I need to edit the XML file?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jimleeder123

I tried editing the drop.php file and default.php files so instead of "@" its now "/", zipped it up and reinstalled it. I did nothing to the XML file. However it's still appearing. I think its going to show the "exploder" sign no matter what.

Hutson - do you know how to fix this or is there a character that won't show like this?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

jimleeder123

I have also seen that editing those 2 files stops it working if I change "@" to "/". Does the XML file definitely need editing and if so where please?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

AH

Hold on - I see from your original post that the variables were separated correctly and the the "funny" characters were next to you currency symbol

Go check in Vm admin and look what is set in your GBP currency symbol!

I think the problem comes from there - NOT this plugin!!

Regards
A

Joomla 3.10.11
php 8.0

jimleeder123

The currency symbol is set to "£" as expected, doesn't look like anything is wrong there.
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

jimleeder123

I've tried changing the "£" to "$" and it fixes it. However I need to be a pound sign since this is an English website.
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

AH

Ok I think this is breaking it

plugins/vmcustom/drop/tmpl/default.php



}
// $selects[] = array('value' =>$valueWithPrice[0], 'text' => $text );
$selects[] = array('value' =>$valueWithPrice[0], 'text' => htmlentities($text) );
}


change to

$selects[] = array('value' =>$valueWithPrice[0], 'text' => $text );
// $selects[] = array('value' =>$valueWithPrice[0], 'text' => htmlentities($text) );

Regards
A

Joomla 3.10.11
php 8.0