Jump to content

irder

Members
  • Posts

    341
  • Joined

  • Last visited

Posts posted by irder

  1. it's weird ,it happened when get access to someone product,others are OK,

    why?

     

    http://www.uniformsell.com/en/waiter-shirts/99-europe-design-restaurants-coffee-shop-hotel-waiter-waitress-uniform.html

     

     

     

    it happened only for some product with reviews ,
    so i checked i have changed the productscomment module,
    after i copy the template file it turned OK

  2. 产品页

    post-806281-0-42816500-1468359596.jpg

    后台

     

     

     

    列表页

     

    post-806281-0-48957700-1489453887.png

     

    看看我的解决方案吧,实现了单一属性自定义图片,修改的文件很多,没法弄成插件,其实你想要的是这个,,

     

    http://www.tianex.com/en/waiter-waitress-uniforms/99-europe-design-restaurants-coffee-bar-waiter-waitress-uniform-shirt-apron.html

     

    和淘宝一样,点击属性图片就可以了

    post-806281-0-42816500-1468359596_thumb.jpg

    post-806281-0-48957700-1489453887_thumb.png

  3. solutions?

    one more problem,

    make sure your scripts work in the right context (loading product or other object)

     

    it will show the same error,

     

    when you just  /admin/index.php?controller=AdminAttributeGenerator&token=28a5934743536e3f1xxx

     

    it's the right url with product id

     

    index.php?controller=AdminAttributeGenerator&id_product=1000&attributegenerator&token=28a5934743536e3f11a323021fcexxx

  4. can't update image positions when multi-store context and images not in default shop(shopid=1)

     

    when you have not one store,

     

    image 1,image 2 in shop 1,

    image 3,image 4 in shop 2,

    when you change the image position it will caused error,

    the ajax return "Property Image->id_product is empty"

     

    can't create right image entity,

     

     

    i found a temp solution : not associate with the shop when the entity is 'Image'

     

    in

     

    \Adapter\Adapter_EntityMapper.php 

     

    change the code 

    $sql->leftJoin($entity_defs['table'] . '_shop', 'c', 'a.`' . bqSQL($entity_defs['primary']) . '` = c.`' . bqSQL($entity_defs['primary']) . '` AND c.`id_shop` = ' . (int)$id_shop);
    

     // Get shop informations

                if (Shop::isTableAssociated($entity_defs['table'])) {
                     if($entity_defs['classname']=='Image'){     
                        $sql->leftJoin($entity_defs['table'] . '_shop', 'c', 'a.`' . bqSQL($entity_defs['primary']) . '` = c.`' . bqSQL($entity_defs['primary']).'`');
                     }else{
                       $sql->leftJoin($entity_defs['table'] . '_shop', 'c', 'a.`' . bqSQL($entity_defs['primary']) . '` = c.`' . bqSQL($entity_defs['primary']) . '` AND c.`id_shop` = ' . (int)$id_shop);
                     }
                }
    • Like 1
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More