Jump to content

pedluis

Members
  • Posts

    20
  • Joined

  • Last visited

1 Follower

Profile Information

  • First Name
    Pedro
  • Last Name
    Trivino

pedluis's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello guys, i'm a newbie and i'm looking for a solution that can allow me to show the final price of an item into the product page for one specific country. We have done special discounts for some countries. I'm trying to use the function: Product::getPriceStatic($id_product, $usetax = true, $id_product_attribute = null, $decimals = 6, $divisor = null, $only_reduc = false, $usereduc = true, $quantity = 1, $force_associated_tax = false, $id_customer = null, $id_cart = null, $id_address = null, &$specific_price_output = null, $with_ecotax = true, $use_group_reduction = true, Context $context = null, $use_customer_price = true); But with this i can only use and id_address to get it. There is a way to get the final price for a specific country? Many thanks
  2. Hello, we are developing our new website with prestashop 1.7.5.1, unfortunately we have found an issue with translations. If you switch from the English version to Italian for example, many string remains in English, if you refresh again the page the content is correctly in Italian. PrestaShop version: 1.7.5.1 PHP version: 7.2
  3. Hello i'm trying to get some values of the order, specially prices and reference code of the product that the customer bought. I've modified OrderConfirmationControler.php public function initContent() { parent::initContent(); $this->context->smarty->assign(array( 'is_guest' => $this->context->customer->is_guest, 'HOOK_ORDER_CONFIRMATION' => $this->displayOrderConfirmation(), 'HOOK_PAYMENT_RETURN' => $this->displayPaymentReturn() )); if ($this->context->customer->is_guest) { $this->context->smarty->assign(array( 'id_order' => $this->id_order, 'reference_order' => $this->reference, 'id_order_formatted' => sprintf('#%06d', $this->id_order), 'email' => $this->context->customer->email )); /* If guest we clear the cookie for security reason */ $this->context->customer->mylogout(); } $this->setTemplate(_PS_THEME_DIR_.'order-confirmation.tpl'); $order = new Order($this->id_order); $cart = new Cart($order->id_cart); $id_order = $this->id_order; $description=""; foreach ($cart->getProducts() AS $k=>$v) { $description.=$v['reference']; } $description = "['".$description."']"; $this->context->smarty->assign(array( 'total_products'=>$order->total_products, 'description'=>$description, 'id_order' =>$order->total_products )); $this->setTemplate(_PS_THEME_DIR_.'order-confirmation.tpl'); } And into the file order-confirmation.tpl i put this <p>{$id_order|string_format:"%.2f"} </p> <p>{$description}</p> <p>[{$id_order|string_format:"%.2f"}]</p> <p>{$total_products}</p> On my test subdomain everything works, but in my official domain the reference code is not viewing. I try to find where could be the problem, and it is into the foreach. I don't know if there is any conflict because i'm getting always an empty value. Anyone can help me?
  4. Sorry guys, i'm usin prestashop 1.6.1.4, and i'm getting a price error, but if i tried to replace product.php and ProductController.php i get only prices with 0. Anyone can help me?
  5. Hello Fabrizio, how did you solve this issue?
  6. Yes I have cpanel. And that was the reason. I have an erp that works using web services of prestashop and it was taking a lot of resources. Now seems to work better.
  7. Thank you shyaminayesh, unfortunately I had a shared hosting with siteground. How can I check those parameters?
  8. Good evening, i'm having a lot of problems with my site. Since last 3 days my site is going down (504 error gateway timeout). From hosting told me that they are unabled to find the error. Anyone can help me or has any idea of the problem? My version of prestashop is 1.6.1.4 And the server data: Informazioni sul server Linux #13 SMP Tue Mar 15 13:23:00 EET 2016 x86_64 Versione software server Apache Versione di PHP 5.6.22 Limite memoria 768M Tempo di esecuzione massimo 0
  9. Ciao Alfonso, anche io sto avendo un problema simile. Il sito va in errore 504. Tu che hosting hai? io ho siteground e la mia versione di prestahop è la 1.6.1.4. A me è da ieri che dà problemi!
  10. No no io ho un catalogo prezzi e lo importo e ai miei prodotti applico l'IVA del 22%, se applico una delle sei opzioni di arrotondamento che ci sono nelle impostazioni mi fa quello scherzo sopra.
  11. Ciao ragazzi sto avendo con l'arrotondamento prezzi,uso prestashop 1.6.1.4. Nello specifico io ho questi casi: a)510,00 b)490,00 c)410,01 prima opzione a)510,00 b)490,00 c)410,01 seconda opzione a)510,00 b)490,00 c)410,01 terza opzione a)510,00 b)490,00 c)410,01 quarta opzione a)510,00 b)490,01 c)410,01 quinta opzione a)509,99 b)490,00 c)410,00 sesta opzione Come potete vedere nessuna nelle opzioni di prestashop riesce ad arrotondare in modo giusto, a sto punto mi chiedo è possibile avere un arrotondamento come il seguente: 52,01 --> 52,00 52,04 --> 52,00 52,05 --> 52,10 52,09 --> 52,10 In questo modo non avrei i problemi sopra indicati.
  12. Hola estoy teniendo problemas con el redondeo de precios, y ninguno de los seis metodos disponibles en prestashop parece funcionar. Por ejemplo yo tengo estos tres precios: a)510,00 b)490,00 c)410,01 usando el primer metodo a)510,00 b)490,00 c)410,01 usando el segundo metodo a)510,00 b)490,00 c)410,01 usando el terer metodo a)510,00 b)490,00 c)410,01 usando el cuarto metodo a)510,00 b)490,01 c)410,01 usando el quinto metodo a)509,99 b)490,00 c)410,00 usando el sexto metodo Como se puede observar ninguno de estos metodos funciona, porque hay siempre una discordancia. Queria saber si es posible solucionar este problema o si alguien tiene idea de cual puede ser el origen de este bug? Personalmente me serviria que el redondeo funcionase en el siguiente modo: 52,01 --> 52,00 52,04 --> 52,00 52,05 --> 52,10 52,09 --> 52,10
  13. Hi, i'm having problems with rounded prices, speciafically any of the new six types of round mode seem to work. For example i have these product prices a)510,00 b)490,00 c)410,01 this with the first round mode a)510,00 b)490,00 c)410,01 this with the second round mode a)510,00 b)490,00 c)410,01 this with the third round mode a)510,00 b)490,00 c)410,01 this with the fourth round mode a)510,00 b)490,01 c)410,01 this with the fitfh round mode a)509,99 b)490,00 c)410,00 this with the sixth round mode LIke you can see none of these round mode work in my case, and there is a lot of product that have prices in this way. Someone have any suggestion to solve this? it would be fantastic to have a round mode like this: 52,01 --> 52,00 52,04 --> 52,00 52,05 --> 52,10 52,09 --> 52,10 In this way there will be no price like 509,99.
  14. Yes, sorry i resolved yesterday. It was a problem with order image, all were setting to 0, now are ordering it works perfectly, thank you!
×
×
  • Create New...