Jump to content

yourzed

Members
  • Posts

    13
  • Joined

  • Last visited

Profile Information

  • First Name
    Sergi
  • Last Name
    Dalmases Trias

yourzed's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Hi, in Prestashop 1.7.8.8 I created A custom module with a Controller that works fine. I also did a new bulk action that displays correctly. But when I "execute" the action, it seems that submits something, but it's not executing the bulk action function I did. Here is an example of the code: class AdminEtiquetasController extends ModuleAdminController { public function __construct() { $this->bootstrap = true; $this->table = 'orders'; $this->identifier = 'id_order'; $this->_path = _PS_MODULE_DIR_.'modulename'; parent::__construct(); $this->list_no_link = true; $this->bulk_actions = array( 'imprimir_etiquetas' => array( 'text' => $this->l('Imprimir seleccionadas'), 'icon' => 'icon-print', ), ); } protected function processBulkimprimir_etiquetas() { $ids = ''; if (is_array($this->boxes) && !empty($this->boxes)) { $deleted = false; foreach ($this->boxes as $id) { // EXECUTE CUSTOM ACTION FOR THE MARKED ORDERS } } } } Also I tried to delete the class_index.php but no luck. I remember that in other modules I did that and it worked allways. Thanks in advance!
  2. Error solved. Before moving the products, you have to press a button called (in spanish) "pedir de nuevo". Don't know why, and what it says in english, but in spanish it doesn't make sense.
  3. Hi, I got two stores with prestashop version 1.7.5. As other versions, under product configuration I have: Products by page: 16 Order products by: position inside category Order: Ascending. When I go to catalog->products. Filter by category, and select one of the categories I have, and also click on the position arrow, it doesn't show the drag&drop option, there is no way to change it. What I am doing wrong? before it was like this. Thanks in advance
  4. Hi, I have a fresh instalation on prestashop 1.7. I'm having some orders that have same id_customer, but on the shipping address, it's from another customer. Looking on the database, I see the table: cart, that has two diferent values: id_customer and id_guest. On these mixed orders, if the id_customer and the id_guest are diferent (If I search the id_guest on the guest table). This is really strange and anoying. Does anyone knows how can I fix it, or what files I have to look where this values are stored? Maybe it's a theme bug, but I don't think so. Thanks in advance
  5. Hi, I have the prestashop version: 1.7.2.1. The shop is working as expected, but sometimes, on specific orders, It doesn't let you to change the order status. It gives a generic error, and on the logs it doen't say nothing. I have been debuging the code and I found that it all works until: Hook::exec('actionOrderStatusUpdate', array('newOrderStatus' => $new_os, 'id_order' => (int)$order->id), null, false, true, false, $order->id_shop); On the /classes/order/OderHistory.php The $new_os variable has the object correct and the $order variable also.... Any ideas? Thanks
  6. Hi, I have a prestashop 1.6 and I'm having random problems with the shipping discount. On almost every order it works well, but sometimes it fails and the order completes without the shipping price discount. I have configured the products with weight. I only have one shipping method, with zones and prices for the zones. I have some buying rules, in specific the one that it fails is configured as this: Free Shipping Customer limit: none From 01/01/2016 To 31/12/2016 Minimum amount: 39 taxes included, shipping excluded total dispo: 555555 total dispo for customer: 555555 Restrictions: Country -> Spain Actions: Free shipping Discount: none With this config today entered an order Customer country: spain Product price without tax: 37.19 Product price with tax: 45 Total products: 45 Total Shipping: 3.45 Total Order: 48.45 As you can see, the rule failed to apply to this order. But It worked for this one: Customer country: spain Product price without tax: 32.23 Product price with tax: 39 Total products: 39 Discount: -3.45 Total Shipping: 3.45 Total Order: 39 Can someone help me to find what is wrong? Thanks a lot
  7. Oh man! I didn't think in that. Thanks a lot for your time
  8. It says: An error occurred while updating customization fields. Of course it's a typical product, it doesn't have anything on the customization tab. Here a screenshot. http://postimg.org/image/8i5sj67hd/
  9. Hi, It simply says the tipical error, error while updating product. It's a little bit anoying because it saves the changes, but only shows that error. Maybe I need to do a override to the function that saves the product on the admin side? Thanks!
  10. Hi, I created a new input for the products. Everything works fine, It saves the field on the database, It shows the input on the admin panel, but when I save the product, it shows an error saving, but it saves it. The prestashop version is 1.6.1.4 I created the field on the database. I created the product.php on the override/classes <?php class Product extends ProductCore { //ALTER TABLE `ps_product` ADD label_tip VARCHAR(256) default NULL; //ALTER TABLE `ps_product_shop` ADD label_tip VARCHAR(256) default NULL; public $label_tip; public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null) { self::$definition['fields']['label_tip'] = array('type' => ObjectModel::TYPE_STRING, 'shop' => true, 'validate' => 'isString'); //self::$definition['fields']['label_tip'] = array('type' => self::TYPE_HTML, 'validate' => 'isCleanHtml'); parent::__construct($id_product, $full, $id_lang, $id_shop, $context); } } I deleted the class_index on the cache. And I added the field on the informations.tpl <div class="form-group"> <label class="control-label col-lg-3" for="label_tip"> <span class="label-tooltip" data-toggle="tooltip" title="{l s='Etiqueta img:'}"> {$bullet_common_field} {l s='Etiqueta img:'} </span> </label> <div class="col-lg-5"> <input type="text" id="label_tip" name="label_tip" value="{$product->label_tip|htmlentitiesUTF8}" /> </div> </div> Anyone can show me how to solve this issue? Thanks for all.
  11. Hi everyone, I made a module that, on the hook productActions, updates the stock of the product connecting throught a webservice with the shop software. The problem is that the "action" takes place after the page is loaded. So, when the user enters the page for the first time, he don't see stock, if he refresh or enter another time, the product has the stock of the software. Any ideas? Maybe the hook I'm using is not the correct one. I'm using prestashop 1.6.1 Thanks in advance!
  12. Thanks for the answer. I think the problem is with the color profile of the images I upload. I will try diferent one's to find out the best.
  13. Hi, I'm having an image problem that it's turning me crazy. First of all, I'm using PS1.6. When I upload a product image, PS creates all the images specified. The problem is with the color of the uploaded image and all the new created ones. The colors are darker than the original image uploaded, even if I configure PS at the maximum image quality. Let's see if someone has the solution.... Thanks in advance! Original image: Created image:
×
×
  • Create New...