VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: YourUnityStore on August 28, 2019, 15:39:22 PM

Title: Price for products and 'add to cart' button displaying incorrectly
Post by: YourUnityStore on August 28, 2019, 15:39:22 PM
Hello everyone!

Current installation:

* Joomla! 3.9.11 Stable
* Virtuemart 3.4.2

I have a couple of issues relating to the price for products and the 'add to cart' button set up.

1. Price - The price shown in my installation shows the value preceded by an underscore. So $300 shows as _$300. How do I remove the underscore?
2. This question and solutions I have found to resolve the two issues I have with the number and the up and down toggles  preceding the button all refer to defunct files in older versions of Virtuemart. There were some good recommendations to use CSS to removed these eg. "display:none!important." This works with removing the number (each items on the site is unique so we'll only ever sell one of each every time, together with up | down arrows but I can't align the button (where the number | up & down toggles used to be) so that the button is left justified, in line with the product description above the price and the cart button.

Can anyone help steer me in the right direction?

Thank you in advance!

Neil
Title: Re: Price for products and 'add to cart' button displaying incorrectly
Post by: jjk on August 28, 2019, 17:09:04 PM
Some things to try:
- Check the settings for the currency US-Dollar to make sure you don't have that underscore in the display options.
- Switch to a different site template to check if it is a template issue.
- Install a native version of VM 3.4.2 over your existing one, if you used the quick start package of your template, which might use customized or outdated files.
- Consider to update to VM 3.6.0 (make a backup first).
Title: Re: Price for products and 'add to cart' button displaying incorrectly
Post by: GJC Web Design on August 28, 2019, 17:53:51 PM
images and live site urls would allow people to help you far better
Title: Re: Price for products and 'add to cart' button displaying incorrectly
Post by: YourUnityStore on August 28, 2019, 18:52:34 PM
Quote from: jjk on August 28, 2019, 17:09:04 PM
Some things to try:
- Check the settings for the currency US-Dollar to make sure you don't have that underscore in the display options.
- Switch to a different site template to check if it is a template issue.
- Install a native version of VM 3.4.2 over your existing one, if you used the quick start package of your template, which might use customized or outdated files.
- Consider to update to VM 3.6.0 (make a backup first).

Thanks, JJK!

- Checked currency settings and clear of any underscores.
- Using an alternative template still shows the underscore.
- I will update to 3.6.0 because it's the right thing to do and because it may help solve this little glitch.

[/quote]
Quote from: GJC Web Design on August 28, 2019, 17:53:51 PM
images and live site urls would allow people to help you far better

Thanks, GJC!

We haven't launched this new charity website and so I don't have permission to publish it. Not helpful, but the client is always king.

I do however have permission for a VM coder to provide them with admin access in order to troubleshoot this and the other problems of the 'add to cart' button being out of alignment and now it would appear, the numbering issue (see image below).

You have helped me in the past to refine the Canada Post extension, so we have already collaborated.

Meanwhile, here's an image of the issues:
Title: Re: Price for products and 'add to cart' button displaying incorrectly
Post by: GJC Web Design on August 28, 2019, 19:17:23 PM
If you drop me an email can have a quick look
Title: Re: Price for products and 'add to cart' button displaying incorrectly
Post by: YourUnityStore on August 28, 2019, 19:30:40 PM
Thanks again for all your help!

I've sent you login credentials via your website contact page. Hope that's ok.

Cheers!

Neil

Edit: Now also sent to your forum email, for ease of reference. The url is https://www.unitystore.org/administrator
Title: Re: Price for products and 'add to cart' button displaying incorrectly
Post by: GJC Web Design on August 28, 2019, 22:55:54 PM
the price thing is stray div

either add somewhere

.price-crossed:after {
    border-top: 0 solid red !important;
}
or

.price-crossed {
    display:none !important;
}

add to cart

.addtocart-bar span.addtocart-button {
    position: unset !important;
}

.product-price {
    margin: 0px 0px 0px 0px !important;
}
Title: Re: Price for products and 'add to cart' button displaying incorrectly
Post by: YourUnityStore on August 29, 2019, 02:39:52 AM
That worked brilliantly - thank you very much for your help!

I'll be in touch regarding your CPost plugin.

Cheers!

Neil