Jump to content

mlizana

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

mlizana's Achievements

Newbie

Newbie (1/14)

0

Reputation

2

Community Answers

  1. Hi! I want to change the behavior of this code in AdminProductsController: $this->fields_list['image'] = array( 'title' => $this->l('Image'), 'align' => 'center', 'image' => 'p', 'orderby' => false, 'filter' => false, 'search' => false ); To point to my custom URL (not using product ID's), something like: 'image' => '/localhost/images/products/product423.png" Any ideas? Thanks!
  2. I wanted to duplicate my shop products and I made a script where I duplicate the ps_products table, and I get the new 'id_product' obtained to insert rows on related tables "ps_product_lang", "ps_product_shop" and "ps_stock_available". Now when I try to buy one of this new products, prestashop gives me this error: [PrestaShopDatabaseException]Data too long for column 'reference' at row 2 UPDATE `ps_stock_available` SET `id_stock_available` = '500',`id_product` = '497',`id_product_attribute` = '0',`id_shop` = '1',`id_shop_group` = '0',`quantity` = '-59',`depends_on_stock` = '0',`out_of_stock` = '1' WHERE `id_stock_available` = 500 I don't understand why it says "column 'reference'" if it's updating the 'stock_available' table, that doesn't have this column... The reference string of my products are like "2020C" and the copy is "2020C_R" (only adding the "_R"). I tried to delete the "_" character but it's the same. If I update the table manually from the workbench, it doesn't works anyway. Any ideas? Thanks
  3. OK thanks! I'll try. From now I'm trying to do it directly to database
  4. Hi, I want to create an order from code (from a button I've created in a form), without using the order-opc steps... How can I do that? Thanks
×
×
  • Create New...