Jump to content
ricamaria

"My shop" instead of the real name of the site on order-confirmation page

Recommended Posts

Hi all,

This is my first post on this forum, hope i'm doing it right.

I do not have a lot of experience programming php, so i am having trouble finding the problem, and maybe a solution.

I am setting up a new Dutch webshop and currently am testing the order process. Lots of things are going right, but i did find one silly bug in my installation.
I am using the classic template with PrestaShop-version: 1.7.5.2, with all modules updated
I am testing with Dutch language settings, but the same problem also occurs when using  the English language. 
I am testing with only one payment option enabled: payment by bank deposit.  (payment by check is disabled and not configured)
I have tested before and after clearing the cache, and with cache on and off.

The page in question is order-confirmation.
There in the section with id "content-hook_payment_return" I see a text "Uw bestelling op My shop is compleet." or in English" :Your order on My shop is complete". The bug is that "My shop" should have been substituted by the real shop name, as informed on the contacts page in the admin module, afaik. 

I have tried to debug, and get to themes\classic\templates\checkout where in the code a $HOOK_PAYMENT_RETURN is, which i think refers to a generic module (actually there are 2 modules that have a payment_return template).
In the directory /modules/ps_wirepayment/views/templates/hook  i find the payment_return template that has the line with the problem  ( i know this is the right template by adding some extra text in it).

the code:
{l s='Your order on %s is complete.' sprintf=[$shop_name] d='Modules.Wirepayment.Shop'}<br/> that generates the wrong (default?) shopname.

Ofcourse i can hardcode the name in this code as a workaround, but why does the real name not get loaded in the $shop_name variable?

In ps_wirepayment.php i see a line of code 'shop_name' => $this->context->shop->name which is in an if statement but if that is the right code to look at is already a bit above my current php skills.

 

Interesting maybe related fact is that a German user has the same kind of problem in the emails showing "My shop" instead of the real name, while my emails get the name of the site in the subjectline :  https://www.prestashop.com/forums/topic/996203-my-shop-anzeige-in-e-mail/?tab=comments#comment-3135185

Hope this is enough info! If not please don't hesitate to ask for more details.

Thanks,

Allard

Share this post


Link to post
Share on other sites

Hi, 

My site is almost ready, and am sending testmails and have the same "My shop" in the confirmation mail. After digging in the database, I found the table pr_shop, with in the name field "My shop".

In the table pr_configuration, i see the field PS_SHOP_NAME which is set to the correct name.

So i think prestashop is reading the name of the shop from 2 places? And only one is updated?

Does this extra information make sense to anyone?

Thanks,

Allard

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More