VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
CHECK OUT OUR PAGE ON GOOGLE +
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Shipping States list it's bad displayed
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Shipping States list it's bad displayed

Shipping States list it's bad displayed 14 Aug 2016 14:43 #9281

Hi,

the shipping States list it's bad displayed in the product description page, see the image attached.
You can see that the States names are shown attached to each other. I'm trying to analyze the element with firebug, but I think that it isn't a css problem, but a problem with php printing method.

How can I fix it?

Thank you
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.

  • Posts:45
  • me
  • Senior Boarder
  • OFFLINE
  • Karma: 0

Re: Shipping States list it's bad displayed 15 Aug 2016 04:03 #9288

The shipping States you mention are custom fields?

joomfreak

  • Posts:2031
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Shipping States list it's bad displayed 15 Aug 2016 11:53 #9294

The shipping States you mention are custom fields?


Thank you for your answer.

The field it isn't customizable, you can select a State and then Virtuemart order it. See the image attached.

This expedition method it's called: "VM Shipment - By weight, ZIP and countries".

Thank you
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
Last Edit: 15 Aug 2016 11:57 by me.

  • Posts:45
  • me
  • Senior Boarder
  • OFFLINE
  • Karma: 0

Re: Shipping States list it's bad displayed 17 Aug 2016 04:39 #9302

Code php to print the shipping States list in file plugins/vmshipment/weight_countries/tmpl/default.php

joomfreak
The following user(s) said Thank You: me

  • Posts:2031
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Shipping States list it's bad displayed 20 Aug 2016 16:41 #9309

I solved just adding a comma to separe the name of each States. I just edited the file: plugins/vmshipment/weight_countries/tmpl/default.php

At this line, I added a comma at the end of: "$country->country_name" before ";", and I added also a string with a comma: ', ', always before of ";".
See the example down here:

 
 
[...]
 
foreach($viewData['method']->countries as $virtuemart_country_id){
$country = $countryM->getData($virtuemart_country_id);
echo $country->country_name, ', '; // <<<---------------------- comma and ', ' added here, after ";"
//vmdebug('my country ',$country);
}
 
[...]
 
 


Thank you
Last Edit: 20 Aug 2016 16:44 by me.

  • Posts:45
  • me
  • Senior Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.63 seconds

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.