Jump to content

engineerHopf

Members
  • Posts

    57
  • Joined

  • Last visited

1 Follower

About engineerHopf

  • Birthday 01/11/1988

Profile Information

  • Location
    España
  • Activity
    Developer

engineerHopf's Achievements

Newbie

Newbie (1/14)

2

Reputation

3

Community Answers

  1. Buenas, lo que puedes hacer, es configurar el transporte, que cuando el costo del pedido llegue y supere los 50 euros, que directamente calcule el envio como 0€ (cero). Y para limitar solo a españa, puedes crear una nueva zona que se llama españa, y a esa zona españa, le asignas el pais de españa, jeje. es un poco complicado, pero con esto, podras configurar bien el transporte. Saludos!
  2. i have been trying same thing too, and i finally find a solution, is very easy. Go to /controllers/admin and download this file "AdminImportController.php". and then, you just need to go to "public function __construct()" search this: "case $this->entities[$this->l('Addresses')]:" you will find this: $this->available_fields = array( 'no' => array('label' => $this->l('Ignore this column')), 'id' => array('label' => $this->l('ID')), 'alias' => array('label' => $this->l('Alias *')), 'active' => array('label' => $this->l('Active (0/1)')), 'customer_email' => array('label' => $this->l('Customer email *')), 'id_customer' => array('label' => $this->l('Customer ID')), 'manufacturer' => array('label' => $this->l('Manufacturer')), 'supplier' => array('label' => $this->l('Supplier')), 'company' => array('label' => $this->l('Company')), 'lastname' => array('label' => $this->l('Last Name *')), 'firstname' => array('label' => $this->l('First Name *')), 'address1' => array('label' => $this->l('Address 1 *')), 'address2' => array('label' => $this->l('Address 2')), 'postcode' => array('label' => $this->l('Zip/postal code *')), 'city' => array('label' => $this->l('City *')), 'country' => array('label' => $this->l('Country *')), 'state' => array('label' => $this->l('State')), 'other' => array('label' => $this->l('Other')), 'phone' => array('label' => $this->l('Phone')), 'phone_mobile' => array('label' => $this->l('Mobile Phone')), 'vat_number' => array('label' => $this->l('VAT number')), ); Before " ); " just add this line: 'dni' => array('label' => $this->l('dni')), Result will be: $this->available_fields = array( 'no' => array('label' => $this->l('Ignore this column')), 'id' => array('label' => $this->l('ID')), 'alias' => array('label' => $this->l('Alias *')), 'active' => array('label' => $this->l('Active (0/1)')), 'customer_email' => array('label' => $this->l('Customer email *')), 'id_customer' => array('label' => $this->l('Customer ID')), 'manufacturer' => array('label' => $this->l('Manufacturer')), 'supplier' => array('label' => $this->l('Supplier')), 'company' => array('label' => $this->l('Company')), 'lastname' => array('label' => $this->l('Last Name *')), 'firstname' => array('label' => $this->l('First Name *')), 'address1' => array('label' => $this->l('Address 1 *')), 'address2' => array('label' => $this->l('Address 2')), 'postcode' => array('label' => $this->l('Zip/postal code *')), 'city' => array('label' => $this->l('City *')), 'country' => array('label' => $this->l('Country *')), 'state' => array('label' => $this->l('State')), 'other' => array('label' => $this->l('Other')), 'phone' => array('label' => $this->l('Phone')), 'phone_mobile' => array('label' => $this->l('Mobile Phone')), 'vat_number' => array('label' => $this->l('VAT number')), 'dni' => array('label' => $this->l('dni')), ); And, that's all!
  3. Vayamos paso a paso, puedes primeramente verificar que permisos tienen tus archivos y carpetas. Y luego comentas al respecto.
  4. Que versión de prestashop utilizas?. A mi no me ha pasado nunca esos problemas.
  5. Buenas tardes compañeros. Estos son algunos datos, antes de explicarles el problema que tengo Web: spainzip.com Ps v: 1.6.0.14 Cuando cree la web, instale la tienda en la versión de PS 1.6.0.5. Y hace unos dias, he actualizado a la última. Se fue presentando muchos problemas pero, solo eran porque habia hecho cambios en las clases de prestashop. En fin, todo bien por ahi. Pero hoy, he querido cambiar una sentencia SQL, (cambiar el titulo). ni siquiera una parte del codigo SQL, me salto un error que pone: ""Undefined "checkedFrom" error"". He buscado alguna solución, pero nada, alguien tuvo el mismo problema?
  6. Estoy con el mismo problema. Es un error grave, y a la vez muy tonto, no entiendo como algo como esto puede pasar
  7. thank about it!. And how should be with referral program?
  8. Lo unico raro que hice, fue, reinstalar prestashop, y en ingles, nose si eso te ayudaria en tu caso. Son casos extraños...
  9. Excellent! GREAT JOB! its work for me, with prestashop 1.6
  10. Hello everyone! Prestashop community! Today I will show you a simple and easy way to show 2 or more in the product price. I will explain the pros and cons, and sample code. My idea is to share this with all, and of course, much more to be improving, and that's what you need, and I think with everyone's help we can make this work very well. As we begin !. 1- Changing code. For this, we will need to modify the moment, the source code of product-list.tpl, which is in themes / yourtheme /. and look for the following: {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} <span itemprop="price" class="price product-price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> <meta itemprop="priceCurrency" content="{$priceDisplay}" /> {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {/if} {/if} </div> {/if} in this part where it says: (itemprop="price" class="price product-price") simply add the product price with or without VAT. The idea is simple, it is to show a currency more, with a corresponding price, in my case, I want to show Korean WON. For that, I made a simple code, this will insert between "{if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}" and "{/if}" first to make it faster and easier, cleared the code (If it's like this) and would look like: {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {/if} then insert Space: <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {/if} {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction} <span class="old-price product-price"> {$product.price_without_reduction*1350}원 </span> {/if} <p> <span itemprop="price" class="price product-price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> <meta itemprop="priceCurrency" content="{$priceDisplay}" /> <span id="our_price_display" itemprop="price"> {if !$priceDisplay}{ round($product.price*1350)}{else}{round($product.price_tax_exc*1350)}{/if}원 </span> {if $product.specific_prices.reduction_type == 'percentage'} <div class="price-percent-reduction"> <p>{$product.specific_prices.reduction*100}%<p> </div> {/if} {/if} </p> </div> and shall be as follows: {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {/if} {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction} <span class="old-price product-price"> {$product.price_without_reduction*1350}원 </span> {/if} <p> <span itemprop="price" class="price product-price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> <meta itemprop="priceCurrency" content="{$priceDisplay}" /> <span id="our_price_display" itemprop="price"> {if !$priceDisplay}{ round($product.price*1350)}{else}{round($product.price_tax_exc*1350)}{/if}원 </span> {if $product.specific_prices.reduction_type == 'percentage'} <div class="price-percent-reduction"> <p>{$product.specific_prices.reduction*100}%<p> </div> {/if} {/if} </p> </div> {/if} with this, we will show the prices as follows: imagen1.png and when you have discounted prices will be shown as follows: imagen2.png With this we have everything, it's simple as I explained at the outset. 2 Advantages and disadvantages. * First let's talk about its benefits: Displays a simple, 2 prices of a product, in my case it is very important because I'm selling Spanish products to South Korea * Cons. Once you do so, you can not add more currency in the store, and that changing to another, obviously I would do the calculation wrong, and that's a bad result and a lack of seriousness of an online store. The format is something even I can not do, wanted to know if anyone can help me on that. It is important and crucial. I have sought ways and can not find it. Updated More than obvious, we can not upgrade from the backoffice currency change, always have to do from the product-list.tpl file, which is very slow when updating. I hope you liked it, it's just a basic idea, and wanted to know if they can improve. I still have much to learn from prestashop. It's an idea, I'm sure many will help them, and clear to those who are good at programming, you sure have a way of updating and formatting. Estaria buenisimo the encontrasen and share for everyone. Well, hello to everyone, and I hope your answers! Web http://spainzip.com/en/
×
×
  • Create New...