sa.walfredo Posted October 14, 2014 Share Posted October 14, 2014 Minha galeria de imagens deixou de funcionar e eu suspeito que tenha haver com a parte de SEO & URL. Tentei fazer algumas modificações ontem e não consegui... Agora percebi que minha galeria de imagem não abre mais. Neste link http://www.voudepink.com/home/26-produto-teste-1.html, ao clicar na foto do produto ela deveria abrir grande porém ao passar o mouse por cima da foto, observo que o link dela está com um NOTICE. http://www.voudepink.com/home/%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%20Undefined%20property:%20Product::$link%20in%20%3Cb%3E/home/voudepinkusa/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php%28157%29%20:%20eval%28%29%27d%20code%3C/b%3E%20on%20line%20%3Cb%3E212%3C/b%3E%3Cbr%20/%3E Apaguei o conteúdo do meu .htaccess e mandei gerar as url's novamente mas continua com o mesmo problema. Não adiantou. A minha url para produtos está: {category:/}{id}-{rewrite}{-:ean13}.html Alguém poderia comparar com a sua e ver se está correto?! Ou sugerir algo que pudesse me ajudar?! Link to comment Share on other sites More sharing options...
CarlosC Posted October 14, 2014 Share Posted October 14, 2014 Boas, O seu tema esta a gerar um smarty erro nesse local: <br /> <b>Notice</b>: Undefined property: Product::$link in <b>/home/voudepinkusa/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>213</b><br /> " href="<br /> <b>Notice</b>: Undefined property: Product::$link in <b>/home/voudepinkusa/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code</b> on line <b>212</b><br /> Deve gerar a imagem desta forma: <span id="view_full_size"> {if $jqZoomEnabled && $have_image && !$content_only} <a class="jqzoom" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" rel="gal1" href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')|escape:'html':'UTF-8'}" itemprop="url"> <img itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}"/> </a> {else} <img id="bigpic" itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" width="{$largeSize.width}" height="{$largeSize.height}"/> {if !$content_only} <span class="span_link no-print">{l s='View larger'}</span> {/if} {/if} </span> Cumps Link to comment Share on other sites More sharing options...
sa.walfredo Posted October 14, 2014 Author Share Posted October 14, 2014 Eu dei um {$product|@var_dump} e ele não mostra mais o meu $product->link, mas traz o $product->link_rewrite Veja o retorno do meu #product object(Product)#89 (88) { ["tax_name"]=> string(10) "deprecated" ["tax_rate"]=> float(0) ["id_manufacturer"]=> string(1) "2" ["id_supplier"]=> string(1) "0" ["id_category_default"]=> string(1) "9" ["id_shop_default"]=> string(1) "1" ["manufacturer_name"]=> string(3) "MAC" ["supplier_name"]=> bool(false) ["name"]=> string(27) "Batom Flat out fabulous MAC" ["description"]=> string(0) "" ["description_short"]=> string(0) "" ["quantity"]=> int(8) ["minimal_quantity"]=> string(1) "1" ["available_now"]=> string(0) "" ["available_later"]=> string(0) "" ["price"]=> float(59.99) ["additional_shipping_cost"]=> string(4) "0.10" ["wholesale_price"]=> string(9) "41.000000" ["on_sale"]=> string(1) "0" ["online_only"]=> string(1) "0" ["unity"]=> string(0) "" ["unit_price"]=> int(0) ["unit_price_ratio"]=> string(8) "0.000000" ["ecotax"]=> string(8) "0.000000" ["reference"]=> string(0) "" ["supplier_reference"]=> string(0) "" ["location"]=> string(0) "" ["width"]=> string(8) "0.000000" ["height"]=> string(8) "0.000000" ["depth"]=> string(8) "0.000000" ["weight"]=> string(8) "0.000000" ["ean13"]=> string(0) "" ["upc"]=> string(0) "" ["link_rewrite"]=> string(23) "batom-flat-out-fabulous" ["meta_description"]=> string(0) "" ["meta_keywords"]=> string(0) "" ["meta_title"]=> string(0) "" ["quantity_discount"]=> string(1) "0" ["customizable"]=> string(1) "0" ["new"]=> bool(false) ["uploadable_files"]=> string(1) "0" ["text_fields"]=> string(1) "0" ["active"]=> string(1) "1" ["redirect_type"]=> string(3) "404" ["id_product_redirected"]=> string(1) "0" ["available_for_order"]=> string(1) "1" ["available_date"]=> string(10) "0000-00-00" ["condition"]=> string(3) "new" ["show_price"]=> string(1) "1" ["indexed"]=> string(1) "1" ["visibility"]=> string(4) "both" ["date_add"]=> string(19) "2014-09-13 12:41:01" ["date_upd"]=> string(19) "2014-10-12 13:43:44" ["tags"]=> array(1) { [2]=> array(6) { [0]=> string(5) "batom" [1]=> string(4) "flat" [2]=> string(3) "mac" [3]=> string(15) "out of fabulous" [4]=> string(6) "labios" [5]=> string(17) "boca batom labios" } } ["id_tax_rules_group"]=> string(1) "0" ["id_color_default"]=> int(0) ["advanced_stock_management"]=> string(1) "0" ["out_of_stock"]=> int(2) ["depends_on_stock"]=> bool(false) ["isFullyLoaded"]=> bool(true) ["cache_is_pack"]=> string(1) "0" ["cache_has_attachments"]=> string(1) "0" ["is_virtual"]=> string(1) "0" ["cache_default_attribute"]=> string(1) "0" ["category"]=> string(5) "batom" ["webserviceParameters":protected]=> array(4) { ["objectMethods"]=> array(2) { ["add"]=> string(5) "addWs" ["update"]=> string(8) "updateWs" } ["objectNodeNames"]=> string(8) "products" ["fields"]=> array(12) { ["id_manufacturer"]=> array(1) { ["xlink_resource"]=> string(13) "manufacturers" } ["id_supplier"]=> array(1) { ["xlink_resource"]=> string(9) "suppliers" } ["id_category_default"]=> array(1) { ["xlink_resource"]=> string(10) "categories" } ["new"]=> array(0) { } ["cache_default_attribute"]=> array(0) { } ["id_default_image"]=> array(3) { ["getter"]=> string(10) "getCoverWs" ["setter"]=> string(10) "setCoverWs" ["xlink_resource"]=> array(2) { ["resourceName"]=> string(6) "images" ["subResourceName"]=> string(8) "products" } } ["id_default_combination"]=> array(3) { ["getter"]=> string(23) "getWsDefaultCombination" ["setter"]=> string(23) "setWsDefaultCombination" ["xlink_resource"]=> array(1) { ["resourceName"]=> string(12) "combinations" } } ["id_tax_rules_group"]=> array(1) { ["xlink_resource"]=> array(1) { ["resourceName"]=> string(15) "tax_rule_groups" } } ["position_in_category"]=> array(2) { ["getter"]=> string(23) "getWsPositionInCategory" ["setter"]=> string(23) "setWsPositionInCategory" } ["manufacturer_name"]=> array(2) { ["getter"]=> string(21) "getWsManufacturerName" ["setter"]=> bool(false) } ["quantity"]=> array(2) { ["getter"]=> bool(false) ["setter"]=> bool(false) } ["type"]=> array(2) { ["getter"]=> string(9) "getWsType" ["setter"]=> string(9) "setWsType" } } ["associations"]=> array(9) { ["categories"]=> array(2) { ["resource"]=> string(10) "categories" ["fields"]=> array(1) { ["id"]=> array(1) { ["required"]=> bool(true) } } } ["images"]=> array(2) { ["resource"]=> string(6) "images" ["fields"]=> array(1) { ["id"]=> array(0) { } } } ["combinations"]=> array(2) { ["resource"]=> string(12) "combinations" ["fields"]=> array(1) { ["id"]=> array(1) { ["required"]=> bool(true) } } } ["product_option_values"]=> array(2) { ["resource"]=> string(21) "product_option_values" ["fields"]=> array(1) { ["id"]=> array(1) { ["required"]=> bool(true) } } } ["product_features"]=> array(2) { ["resource"]=> string(16) "product_features" ["fields"]=> array(3) { ["id"]=> array(1) { ["required"]=> bool(true) } ["custom"]=> array(1) { ["required"]=> bool(false) } ["id_feature_value"]=> array(2) { ["required"]=> bool(true) ["xlink_resource"]=> string(22) "product_feature_values" } } } ["tags"]=> array(2) { ["resource"]=> string(4) "tags" ["fields"]=> array(1) { ["id"]=> array(1) { ["required"]=> bool(true) } } } ["stock_availables"]=> array(3) { ["resource"]=> string(16) "stock_availables" ["fields"]=> array(2) { ["id"]=> array(1) { ["required"]=> bool(true) } ["id_product_attribute"]=> array(1) { ["required"]=> bool(true) } } ["setter"]=> bool(false) } ["accessories"]=> array(2) { ["resource"]=> string(8) "products" ["fields"]=> array(1) { ["id"]=> array(2) { ["required"]=> bool(true) ["xlink_resource"]=> string(7) "product" } } } ["product_bundle"]=> array(2) { ["resource"]=> string(8) "products" ["fields"]=> array(2) { ["id"]=> array(1) { ["required"]=> bool(true) } ["quantity"]=> array(0) { } } } } } ["id"]=> int(9) ["id_lang":protected]=> int(2) ["id_shop":protected]=> int(1) ["id_shop_list"]=> NULL ["get_shop_from_context":protected]=> bool(false) ["table":protected]=> string(7) "product" ["identifier":protected]=> string(10) "id_product" ["fieldsRequired":protected]=> array(1) { [0]=> string(5) "price" } ["fieldsSize":protected]=> array(5) { ["reference"]=> int(32) ["supplier_reference"]=> int(32) ["location"]=> int(64) ["ean13"]=> int(13) ["upc"]=> int(12) } ["fieldsValidate":protected]=> array(41) { ["id_shop_default"]=> string(12) "isUnsignedId" ["id_manufacturer"]=> string(12) "isUnsignedId" ["id_supplier"]=> string(12) "isUnsignedId" ["reference"]=> string(11) "isReference" ["supplier_reference"]=> string(11) "isReference" ["location"]=> string(11) "isReference" ["width"]=> string(15) "isUnsignedFloat" ["height"]=> string(15) "isUnsignedFloat" ["depth"]=> string(15) "isUnsignedFloat" ["weight"]=> string(15) "isUnsignedFloat" ["quantity_discount"]=> string(6) "isBool" ["ean13"]=> string(7) "isEan13" ["upc"]=> string(5) "isUpc" ["cache_is_pack"]=> string(6) "isBool" ["cache_has_attachments"]=> string(6) "isBool" ["is_virtual"]=> string(6) "isBool" ["id_category_default"]=> string(12) "isUnsignedId" ["id_tax_rules_group"]=> string(12) "isUnsignedId" ["on_sale"]=> string(6) "isBool" ["online_only"]=> string(6) "isBool" ["ecotax"]=> string(7) "isPrice" ["minimal_quantity"]=> string(13) "isUnsignedInt" ["price"]=> string(7) "isPrice" ["wholesale_price"]=> string(7) "isPrice" ["unity"]=> string(8) "isString" ["additional_shipping_cost"]=> string(7) "isPrice" ["customizable"]=> string(13) "isUnsignedInt" ["text_fields"]=> string(13) "isUnsignedInt" ["uploadable_files"]=> string(13) "isUnsignedInt" ["active"]=> string(6) "isBool" ["redirect_type"]=> string(8) "isString" ["id_product_redirected"]=> string(12) "isUnsignedId" ["available_for_order"]=> string(6) "isBool" ["available_date"]=> string(12) "isDateFormat" ["condition"]=> string(13) "isGenericName" ["show_price"]=> string(6) "isBool" ["indexed"]=> string(6) "isBool" ["visibility"]=> string(19) "isProductVisibility" ["advanced_stock_management"]=> string(6) "isBool" ["date_add"]=> string(12) "isDateFormat" ["date_upd"]=> string(12) "isDateFormat" } ["fieldsRequiredLang":protected]=> array(2) { [0]=> string(12) "link_rewrite" [1]=> string(4) "name" } ["fieldsSizeLang":protected]=> array(7) { ["meta_description"]=> int(255) ["meta_keywords"]=> int(255) ["meta_title"]=> int(128) ["link_rewrite"]=> int(128) ["name"]=> int(128) ["available_now"]=> int(255) ["available_later"]=> int(255) } ["fieldsValidateLang":protected]=> array(9) { ["meta_description"]=> string(13) "isGenericName" ["meta_keywords"]=> string(13) "isGenericName" ["meta_title"]=> string(13) "isGenericName" ["link_rewrite"]=> string(13) "isLinkRewrite" ["name"]=> string(13) "isCatalogName" ["description"]=> string(11) "isCleanHtml" ["description_short"]=> string(11) "isCleanHtml" ["available_now"]=> string(13) "isGenericName" ["available_later"]=> string(13) "IsGenericName" } ["tables":protected]=> array(0) { } ["image_dir":protected]=> NULL ["image_format":protected]=> string(3) "jpg" ["def":protected]=> array(7) { ["table"]=> string(7) "product" ["primary"]=> string(10) "id_product" ["multilang"]=> bool(true) ["multilang_shop"]=> bool(true) ["fields"]=> array(52) { ["id_shop_default"]=> array(2) { ["type"]=> int(1) ["validate"]=> string(12) "isUnsignedId" } ["id_manufacturer"]=> array(2) { ["type"]=> int(1) ["validate"]=> string(12) "isUnsignedId" } ["id_supplier"]=> array(2) { ["type"]=> int(1) ["validate"]=> string(12) "isUnsignedId" } ["reference"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(11) "isReference" ["size"]=> int(32) } ["supplier_reference"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(11) "isReference" ["size"]=> int(32) } ["location"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(11) "isReference" ["size"]=> int(64) } ["width"]=> array(2) { ["type"]=> int(4) ["validate"]=> string(15) "isUnsignedFloat" } ["height"]=> array(2) { ["type"]=> int(4) ["validate"]=> string(15) "isUnsignedFloat" } ["depth"]=> array(2) { ["type"]=> int(4) ["validate"]=> string(15) "isUnsignedFloat" } ["weight"]=> array(2) { ["type"]=> int(4) ["validate"]=> string(15) "isUnsignedFloat" } ["quantity_discount"]=> array(2) { ["type"]=> int(2) ["validate"]=> string(6) "isBool" } ["ean13"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(7) "isEan13" ["size"]=> int(13) } ["upc"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(5) "isUpc" ["size"]=> int(12) } ["cache_is_pack"]=> array(2) { ["type"]=> int(2) ["validate"]=> string(6) "isBool" } ["cache_has_attachments"]=> array(2) { ["type"]=> int(2) ["validate"]=> string(6) "isBool" } ["is_virtual"]=> array(2) { ["type"]=> int(2) ["validate"]=> string(6) "isBool" } ["id_category_default"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(12) "isUnsignedId" } ["id_tax_rules_group"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(12) "isUnsignedId" } ["on_sale"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["online_only"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["ecotax"]=> array(3) { ["type"]=> int(4) ["shop"]=> bool(true) ["validate"]=> string(7) "isPrice" } ["minimal_quantity"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(13) "isUnsignedInt" } ["price"]=> array(4) { ["type"]=> int(4) ["shop"]=> bool(true) ["validate"]=> string(7) "isPrice" ["required"]=> bool(true) } ["wholesale_price"]=> array(3) { ["type"]=> int(4) ["shop"]=> bool(true) ["validate"]=> string(7) "isPrice" } ["unity"]=> array(3) { ["type"]=> int(3) ["shop"]=> bool(true) ["validate"]=> string(8) "isString" } ["unit_price_ratio"]=> array(2) { ["type"]=> int(4) ["shop"]=> bool(true) } ["additional_shipping_cost"]=> array(3) { ["type"]=> int(4) ["shop"]=> bool(true) ["validate"]=> string(7) "isPrice" } ["customizable"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(13) "isUnsignedInt" } ["text_fields"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(13) "isUnsignedInt" } ["uploadable_files"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(13) "isUnsignedInt" } ["active"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["redirect_type"]=> array(3) { ["type"]=> int(3) ["shop"]=> bool(true) ["validate"]=> string(8) "isString" } ["id_product_redirected"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(12) "isUnsignedId" } ["available_for_order"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["available_date"]=> array(3) { ["type"]=> int(5) ["shop"]=> bool(true) ["validate"]=> string(12) "isDateFormat" } ["condition"]=> array(5) { ["type"]=> int(3) ["shop"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["values"]=> array(3) { [0]=> string(3) "new" [1]=> string(4) "used" [2]=> string(11) "refurbished" } ["default"]=> string(3) "new" } ["show_price"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["indexed"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["visibility"]=> array(5) { ["type"]=> int(3) ["shop"]=> bool(true) ["validate"]=> string(19) "isProductVisibility" ["values"]=> array(4) { [0]=> string(4) "both" [1]=> string(7) "catalog" [2]=> string(6) "search" [3]=> string(4) "none" } ["default"]=> string(4) "both" } ["cache_default_attribute"]=> array(2) { ["type"]=> int(1) ["shop"]=> bool(true) } ["advanced_stock_management"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["date_add"]=> array(3) { ["type"]=> int(5) ["shop"]=> bool(true) ["validate"]=> string(12) "isDateFormat" } ["date_upd"]=> array(3) { ["type"]=> int(5) ["shop"]=> bool(true) ["validate"]=> string(12) "isDateFormat" } ["meta_description"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["size"]=> int(255) } ["meta_keywords"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["size"]=> int(255) } ["meta_title"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["size"]=> int(128) } ["link_rewrite"]=> array(6) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isLinkRewrite" ["required"]=> bool(true) ["size"]=> int(128) ["ws_modifier"]=> array(2) { ["http_method"]=> int(2) ["modifier"]=> string(21) "modifierWsLinkRewrite" } } ["name"]=> array(5) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isCatalogName" ["required"]=> bool(true) ["size"]=> int(128) } ["description"]=> array(3) { ["type"]=> int(6) ["lang"]=> bool(true) ["validate"]=> string(11) "isCleanHtml" } ["description_short"]=> array(3) { ["type"]=> int(6) ["lang"]=> bool(true) ["validate"]=> string(11) "isCleanHtml" } ["available_now"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["size"]=> int(255) } ["available_later"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "IsGenericName" ["size"]=> int(255) } } ["associations"]=> array(7) { ["manufacturer"]=> array(1) { ["type"]=> int(1) } ["supplier"]=> array(1) { ["type"]=> int(1) } ["default_category"]=> array(3) { ["type"]=> int(1) ["field"]=> string(19) "id_category_default" ["object"]=> string(8) "Category" } ["tax_rules_group"]=> array(1) { ["type"]=> int(1) } ["categories"]=> array(4) { ["type"]=> int(2) ["field"]=> string(11) "id_category" ["object"]=> string(8) "Category" ["association"]=> string(16) "category_product" } ["stock_availables"]=> array(4) { ["type"]=> int(2) ["field"]=> string(18) "id_stock_available" ["object"]=> string(14) "StockAvailable" ["association"]=> string(16) "stock_availables" } ["l"]=> array(3) { ["type"]=> int(2) ["field"]=> string(10) "id_product" ["foreign_field"]=> string(10) "id_product" } } ["classname"]=> string(7) "Product" } ["update_fields":protected]=> NULL ["force_id"]=> bool(false) ["base_price"]=> string(9) "59.990000" ["specificPrice"]=> array(0) { } ["customization_required"]=> bool(false)} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now