Jump to content

Arnaud Roch-Trève

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • First Name
    Arnaud
  • Last Name
    Roch-Trève

Recent Profile Visitors

202 profile views

Arnaud Roch-Trève's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Conversation Starter Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

1

Reputation

  1. Hello, Since I still can't send mail because of configuration it seems, the initial error was because of a corrupted file. He was there but empty. To upload it again fixed the issue.
  2. Hello, I am on a fresh install of Prestashop 8.0.3. While testing my shop, I realized that I didn't receive usual transactionnal emails when buying stuff. I went to advanced setting > email and tried to send a test email. I got a 500 server error in the ajax call. Here what I have in the log : [2023-05-11 13:42:59] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load interface "Swift_Events_Event" from the global namespace. Did you forget a "use" statement?" at /srv/data/web/vhosts/mytestdomain.com/htdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/EventObject.php line 16 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\ClassNotFoundError(code: 0): Attempted to load interface \"Swift_Events_Event\" from the global namespace.\nDid you forget a \"use\" statement? at /srv/data/web/vhosts/mytestdomain.com/htdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/EventObject.php:16)"} [] [2023-05-11 13:42:59] request.CRITICAL: Exception thrown when handling an exception (Twig\Error\LoaderError: Template "::base.html.twig" is not defined in "@PrestaShop/Admin/Exception/error.html.twig" at line 26. at /srv/data/web/vhosts/mytestdomain.com/htdocs/vendor/twig/twig/src/Loader/ChainLoader.php line 99) {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Template \"::base.html.twig\" is not defined in \"@PrestaShop/Admin/Exception/error.html.twig\" at line 26. at /srv/data/web/vhosts/mytestdomain.com/htdocs/vendor/twig/twig/src/Loader/ChainLoader.php:99)"} [] It is a fresh install, I only installed 1 module for advanced fees. I tried using SMTP too. Should I install another emailing module ? Anyone have a solution ? Thank you
  3. Hello Dedandw, I read your Google Thread, but I only see that you have been told to remove the "$". I already know where the problem come from, and I didn't see, in your thread, how I can solve it. Did I misread ? Thanks.
  4. Sorry, I don't completely understand what you trying to tell me. You says that when you use blockbestseller, {$product.price} return the price without € ? So maybe it's coming from the module parameters ? Just in case, Here the whole div : <div class="text_desc" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <h5 class="float-left"> <a href="{$product.link}" title="{$product.name|escape:'htmlall':'UTF-8'}" itemprop="url"> {$product.name|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'|truncate:30:'...'} </a> <span class="price">{$product.price}</span> {assign var='priceVar' value=$product.price} {$priceVar|replace:' €':''} <meta itemprop="price" content="{$priceVar|replace:' €':''}"/> <meta itemprop="priceCurrency" content="EUR" /> </h5> </div> I use another var than $product.price because of this thread: https://www.prestashop.com/forums/topic/437646-trying-to-get-total-price-in-blockcart-without-currency/ See post #6 and #8 from Nemo1. Thank you for your time jllramos.
  5. Joselu, Thanks for the answer, but I made a mistake in my first post draw, I did write correctly in my code. <meta itemprop="price" content="{$priceVar|replace:' €':''}"/> I edited my post. Sorry.
  6. Hello, Regarding SEO optimisation, I had to add some structured data by overriding modules. To do so, I have to get the product price in several template (product.tpl, product-list.tpl, modules...). But for one module, bockbestsellers, the displayed price is $product.price, and when I get its value I get "[Price] €". Original code : <span class="price">{$product.price}</span> First try code : <span class="price" itemprop="price">{$product.price}</span> And I get this in google structured data test tool : price: 1,94 € With the following warning : The property is not a specification of valid price. I know from my structured data in product.tpl that I need to put away the €. I only need numbers. So I tried something that I saw on this forum : {assign var='priceVar' value=$product.price} <meta itemprop="price" content="{$priceVar|replace:' €':''}"/> But it's not working. Does someone can help me out on this problem ? I'm quite new handling smarty Prestashop template. Additional information : The var_dump result of $priceVar : string '8,48 €' In template product and product-list I do not have the problem because it seems $productPrice is already without currency. And if I can avoid to modify the php of the module it would be great. Thanks.
×
×
  • Create New...