Paypal logo in Prestashop checkout - prestashop

Good evening,
I use PayPal module on my website developped with Prestashop 1.5.5
I would like to modify the logo which appears at the end of the checkout process because it's too large for my theme.
So I removed the file FR_bnr_horizontal_solution_PP_327wx80h.gif in the folder module/paypal/img/logos/ and replaced it with a new image with the same name.
Moreover, nothing change, the previous logo was always active and the correspondaing file FR_bnr_horizontal_solution_PP_327wx80h.gif was re-created in the folder.
What should I do to resolve this issue ? Which file must I modified ?
Thanks in advance.
Samuel

Through browsers developers extension, check which is the image your template is using.
Then change it in modules/paypal/img/logos.
In my case it was the file PT_vertical_solution_PPeCheck.gif, where PT is the code language.

Related

Prestashop webvolty, can't change default template, goes back to original state

I am trying to edit prestashop 1.7.5 module of webvolty template. It's just a minor tweak (I want to change translation but don't know how to use default translation files). I just edit display_compare_product.tpl file on my PC, delete one at remote location and upload edited. Every time I do that it almost instantly goes to original state (I can see file size goes to original state after 0,1 s). Any way to force this process or can anyone help me with translation of a string? All i see is pl.php file at translations folder but it's empty.
Apparently you can do that through:
International > Translations
I just did not know that you can also translate ANY string from ANY module with that feature.

PhpStorm autocomplete for OpenCart classes

I did this:
I downloaded a zip from OpenCart website and put it in xampp/htdocs/mywebsite. I need PhpStorm to autocomplete methods of OpenCart classes but none are recognized I think. And this is not only for OpenCart: I have the same issue with WordPress as well.
Edit: check this screenshot
I want this:
I want external classes to support autocomplete but I don't know what to do.
Solved
So after a year and half practicing opencart, i can now answer this question. In opencart we have a folder called 'model'. there are files in this folder which you can call in any 'controller' you want. And this models are generated dynamicly. Because of that you cant trace them in IDE, like click on them and see the exact file. Thats why opencart sucks.

Modify product labels xml in Odoo

I’m having several issues when trying to modify the default template of product labels. I need to add some new fields to the existing template that generates the document of product labels (and to design in with proper dimensions).
I am not able to find the xml template to modify it because I can’t find the file. This is a topic I have been researching deeply through the internet during the lasts days and all my attempts have been unsuccessful.
On the Internet, it is said that the product labels are generated using the product/report/product-label.xml and product_label.xsl:
https://www.odoo.com/es_ES/forum/ayuda-1/question/product-label-prints-only-one-variant-attribute-74684
The issue is that I can’t files these files in my Odoo installation folder (tested with both Windows and Ubuntu). These are my folder contents in Ubuntu usr/lib/python3/dist-packages/odoo/addons/product/report:
Should I create the xml and xsl files?
If so, how can I reference them? I have already tried to modify the xml file to try if the options for rendering the report change and nothing’s happens...
Here is the xml that I have been modifying (looks like it is an index of the different available reports but I haven’t found any official documentation regarding this) (note that I’ve added a number to each report title to see if something changes):
And the select options are still the same, as it can be seen in the following screenshot.
Am I’m missing something? It looks like these templates are located somewhere else and I’m editing these files without success (and restarting the Odoo server doesn’t work either...).
I'm using Odoo v12.
Thank you for your help!
<report> tag in odoo is actually shortcut of ir.action.report model record creation, qweb-pdf or qweb-html type of report needs a qweb template to render the report output, which is mentioned in name and file properties in the report tag.
After changing the files in a odoo module, if that module is already installed before change, you have to update the module. You can update from Apps menu of odoo web panel. For example, in this case, you are making change in product module which is named Products & Pricelists in odoo Apps. After making change, update that module and you will find the changes effective. Also, if you are adding new XML file, you have to add respective file name in __manifest.py__, or have to import in __init.py__ if you are adding new python file in the module.

Bigcommerce - Side Cart Total always shows $29.00

I am having some issues with a BigCommerce theme. It is an exact copy of a working theme, but on the new site, the mini basket/cart always shows $29.00 no matter what is in the cart (site is also set up to use £)
The issue lies with %%LNG_SideCartTotalCost%%.
Whats odd is that I checked the language file (via the url) and the text for this variable should be:
"Your sub total is <strong>%s</strong>."
Yet its coming through as:
"Total: <strong>%s</strong>."
I'm unsure who this was changed (the site is a clients, who has had work done by other developers)
How would someone change this language variable in BigCommerce? I was under the impression you could only edit themes, and not code?
So, any thoughts on how to fix this?
Thanks!
I work at Bigcommerce. The file you will need to edit is the sidecartcontents.html file. You are able to customize HTML, CSS, Javascript and JQuery. The only thing you don't have access to is any global variables that require PHP files. As a SaaS platform, we don't provide our clients access to the PHP files.
Turns out is was an issue with the language file. The support staff had to update it.

How to Modify Login Block to make 'Create New User Account' link redirect to page other than user/register in Drupal 6.x

I would like to have my (Create New Account) redirect to a page other than registration page. I found a workaround in which one inserts a simple code into the template.php file. This works very well if the theme is Garland or alike. The problem with me is: I am using Ad-novus theme in which I could not find the template.php file where I should have inserted the solver code. Can anyone please help with this by telling me whether there is an alternative file that I can use instead of the template.php. Thanks
You just have to create a template.php file and paste that simple code. That's all :-)
Drupal theme engine system will load that file automatically and load your code snippet. And remember to flush cache if it don't work [1]
[1] /admin/settings/performance