VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: vetocare on August 08, 2023, 22:09:50 PM

Title: Customize page template
Post by: vetocare on August 08, 2023, 22:09:50 PM
Hi,
I am using joomla 4.3.3 and VirtueMart 4.0.12. The flex theme was used for the website.
However, I have two problems that I haven't been able to solve so far:

1. In the shopping cart area, the user is asked "New here?" and then forwarded with a link on a rectangular box. Unfortunately, this English text cannot be adapted by the installed language packs! How to change this to display according to the selected and installed language? Unfortunately, I'm a layman and don't really have a clue how to do this.
2. Next to the "New here?" there is a link in the colors of the theme. Unfortunately, the link color is black. And since a button is imitated there that has the color dark blue, the link is difficult to see.
Buttons are usually displayed in white text on a dark blue box on the rest of the page. How can I change this?

I have already asked this question in a German forum and unfortunately no one has an answer. Maybe here?
Title: Re: Customize page template
Post by: ViPeS on August 08, 2023, 22:56:02 PM
Quote from: vetocare on August 08, 2023, 22:09:50 PM

1. In the shopping cart area, the user is asked "New here?" and then forwarded with a link on a rectangular box.
Post a screenshot and a link to your site.
Title: Re: Customize page template
Post by: vetocare on August 09, 2023, 11:19:17 AM
Hi ViPeS,
thx for your answer!
I send here a screenshot in the attachment

and the link to this "problem" is https://www.vet-o-care.de/index.php/warenkorb (https://www.vet-o-care.de/index.php/warenkorb)
Title: Re: Customize page template
Post by: GJC Web Design on August 09, 2023, 13:02:10 PM
add in your custom css somewhere

#sp-main-body a.btn {
    color: #fff;
}
the text is impossible to say without knowing the code .. "New Here?" could be hard coded or have a lang constant

it is not standard VM

you need to find the file it is in .. in your VM template over rides somewhere /cart/ ?
Title: Re: Customize page template
Post by: ViPeS on August 09, 2023, 13:21:00 PM
You need to do Language Overrides:
1. In System Dashboard select Language Overrides
2. Choose Your Language-Site
3. Click New
4. Write MOD_NEW_REGISTER in the field "Language Constant *"
5. Write Neu hier? in the field "Text"
6. Click Save
7. Clear the cache - click "Delete All" in Maintenance: Clear Cache

Check the result on the site.
Title: Re: Customize page template
Post by: vetocare on August 09, 2023, 17:18:58 PM
Thanks!! ;)
One problem solved!

Just a question:
how can I find out for myself where this modification is necessary? I've managed to do an override before. But I haven't figured out how to find the relevant part here!
Title: Re: Customize page template
Post by: ViPeS on August 09, 2023, 17:58:06 PM
Product successfully added to
VM_POPUP_PRODUCT_ADDED_SUCCESS

Your Shopping Cart
VM_POPUP_YOUR_SH0PPING_CART

Quantity:
VM_POPUP_SH0PPING_CART_QUANTITY

I also use Flex and did it for Lithuanian
Title: Re: Customize page template
Post by: ViPeS on August 10, 2023, 11:30:11 AM
MOD_LOGIN_FORGOT
MOD_LOGIN_FORGOT_PASSWORD
MOD_LOGIN_OR
MOD_LOGIN_FORGOT_USERNAME

MOD_LOGIN_CREATE_ACCOUNT
MOD_LOGIN_REGISTER