Jump to content

Hadiqa

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • Location
    karachi
  • Activity
    Freelancer

Hadiqa's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. I have noticed 1 thing i added 1 new product and selected Ready-to-Wear option from condition box and then saved it when the page returned after saving the option was not selected and stitched was on top as before so it means the my information tab of new product has some problem is selection of check box option
  2. shop.com/admin5586/themes/default/template/controllers/products/informations.tpl <div class="form-group"> <label class="control-label col-lg-3" for="condition"> {include file="controllers/products/multishop/checkbox.tpl" field="condition" type="default"} {l s='Condition'} </label> <div class="col-lg-3"> <select name="condition" id="condition"> <option value="stitched" {if $product->condition == 'stitched'} selected="selected"{/if}>{l s='Stitched'}</option> <option value="un-stitched" {if $product->condition == 'un-stitched'} selected="selected"{/if}>{l s='Un-Stitched'}</option> <option value="ready-to-wear" {if $product->condition == 'ready-to-wear'}selected="selected"{/if}>{l s='Ready-to-Wear'}</option> <option value="made-to-order" {if $product->condition == 'made-to-order'}selected="selected"{/if}>{l s='Made-to-Order'}</option> </select> </div> </div> shop.com/themes/default-bootstrap/product.tpl {capture name=condition} {if $product->condition == 'stitched'}{l s='Stitched'} {elseif $product->condition == 'un-stitched'}{l s='Un-Stitched'} {elseif $product->condition == 'ready-to-wear'}{l s='Ready-to-Wear'} {elseif $product->condition == 'made-to-order'}{l s='Made-to-Order'} {/if} {/capture} <p id="product_condition"{if !$product->condition} style="display: none;"{/if}> <label>{l s='Condition'} </label> <span class="editable" itemprop="condition">{$smarty.capture.condition}</span> </p> shop.com/classes/Product.php Line 179: /** @var enum Product condition (stitched, un-stitched, ready-to-wear, made-to-order) */ public $condition; Line 291: 'condition' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isGenericName', 'values' => array('stitched', 'un-stitched', 'ready-to-wear', 'made-to-order'), 'default' => 'stitched'), Database also done ALTER TABLE `ps_product` CHANGE `condition` `condition` ENUM('stitched','un-stitched','ready-to-wear','made-to-order') CHARACTER SET utf8 COLLATEutf8_general_ci NOT NULL DEFAULT 'stitched'; STILL FRONT OFFICE DISPLAYING NEW, USED condition in left filter coloum
  3. I have also done all this and then i edited shop.com/classes/Product.php Line 179:/** @var enum Product condition (stitched, un-stitched, ready-to-wear, made-to-order) */ public $condition; Line 291: 'condition' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isGenericName', 'values' => array('stitched', 'un-stitched', 'ready-to-wear', 'made-to-order'), 'default' => 'stitched'), that helped me get rid of this error too so now product.tpl (done) product.php (done) information.tpl (done) database table CONDITION also DONE still i am seeing NEW, USED, REFURBISHED on my front office WHYYYYYYYYYYYYYY
  4. ????? am i missing any file to update? where are these conditions coming from...??? I have noticed 1 thing i added 1 new product and selected Ready-to-Wear option from condition box and then saved it when the page returned after saving the option was not selected and stitched was on top as before so it means the my information tab of new product has some problem is selection of check box option also posted here http://www.prestashop.com/forums/topic/169469-displaying-product-condition-solved/
  5. AS PER UR INSTRUCTIONS I HAVE DONE IT first the Recompile templates if the files have been updated was ON Cache was OFF now Force compilation is ON Cache is still OFF BUT no changes
  6. i want both front & back obviously back i did and its working fine but front office is not making any chages in left filter and attributes near product images both not changing as per ur guidance i have updated /themes/default-bootstrap/product.tpl too <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <p id="product_reference"{if empty($product->reference) || !$product->reference} style="display: none;"{/if}> <label>{l s='Model'} </label> <span class="editable" itemprop="sku">{if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}</span> </p> {capture name=condition} {if $product-> condition == 'stitched'} {l s='Stitched'} {elseif $product-> condition == 'un-stitched'} {l s='Un-Stitched'} {elseif $product-> condition == 'ready-to-wear'} {l s='Ready-to-Wear'} {elseif $product-> condition == 'made-to-order'} {l s='Made-to-Order'} {/if} {/capture} <p id="product_condition"{if !$product->condition} style="display: none;"{/if}> <label>{l s='Condition'} </label> <span class="editable" itemprop="condition">{$smarty.capture.condition}</span> </p> but of no use to front office issue
  7. yes...i was looking for this admin area i did but front office files i had no idea where to work thanks let me check product.tpl
  8. /admin5586/themes/default/template/controllers/products/informations.tpl yup i made changes here and then in /classes/Product.php and then i edited myphp's table for CONDITION in ALTER TABLE `ps_product` CHANGE `condition` `condition` ENUM('stitched','un-stitched','ready-to-wear','made-to-order') CHARACTERSET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'stitched';
  9. I wanted this option for my client's site and i have changed it this way <div class="form-group"> <label class="control-label col-lg-3" for="condition"> {include file="controllers/products/multishop/checkbox.tpl" field="condition" type="default"} {l s='Condition'} </label> <div class="col-lg-3"> <select name="condition" id="condition"> <option value="stitched" {if $product->condition == 'stitched'} selected="selected"{/if}>{l s='Stitched'}</option> <option value="unstitched" {if $product->condition == 'unstitched'} selected="selected"{/if}>{l s='Un-Stitched'}</option> <option value="readytowear" {if $product->condition == 'readytowear'}selected="selected"{/if}>{l s='Ready-to-Wear'}</option> <option value="madetoorder" {if $product->condition == 'madetoorder'}selected="selected"{/if}>{l s='Made-to-Order'}</option> </select> </div> </div> plus i edited /classes/Product.php as well /** @var enum Product condition (stitched, un-stitched, ready-to-wear, made-to-order) */ public $condition; 'condition' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isGenericName', 'values' => array('stitched', 'unstitched', 'readytowear', 'madetoorder'), 'default' => 'stitched'), so everything is GREAT in the admin side now i am lost because nothing is happening to front view of website.... same condition box with NEW, USED & REFURBISHED is shown plz help to find how to change and where? plus i want to add some radio button option and some drop list on the product page where condition is displayed just next to the photo of the product plz guide me to the procedure....
  10. no i dont think so..... module is installed but copying the code in window gives error it never saves it means my prestashop is not taking codes via modules
  11. STORE INFORMATIONPrestaShop version: 1.6.0.6 Shop URL: http://www.pakistanidressesshop.com/ Current theme in use: default-bootstrap i have some major problems, 1. when ever i paste any code in html code area on any module it never saves, for example i am unable to paste Gadsense code on Gadsense module....al modules have smae problem they are not taking codes and on saving they return 404 page , i tried to paste the same code on the red banner as shown on my home page, going in the theme config but it also never saves, same problem every where 2. i am adding pages and links to footer but i cant see them on front of website, how to create a new menu in footer?
  12. I did but its not working the test results on clicktale says CODE NOT FOUND i pasted TOP code in header.tpl and bottom code in footer.tpl but of no use plz check my code <!-- ClickTale Top part --> <script type="text/javascript"> var WRInitTime=(new Date()).getTime(); </script> <!-- ClickTale end of Top part --> <!-- ClickTale Bottom part (XHTML) --> <script type='text/javascript'> <!-- The ClickTale Balkan Tracking Code may be programmatically customized using hooks:--> function ClickTalePreRecordingHook() { ClickTaleFetchFromWithCookies.setFromCookie(/^ASPSESSIONID.*/); window.ClickTaleFetchFrom = ClickTaleFetchFromWithCookies.constructFetchFromUrl(); ClickTaleEventsMask-=4; } <!-- For details about ClickTale hooks, please consult the wiki page http://wiki.clicktale.com/Article/Customizing_code_version_2--> <!-- Add this to "OnDomLoad" event--> (function(){ if (typeof (ClickTaleCreateDOMElement) != "function") { ClickTaleCreateDOMElement = function(tagName) { if (document.createElementNS) { return document.createElementNS('http://www.w3.org/1999/xhtml' tagName); } return document.createElement(tagName); } } if (typeof (ClickTaleAppendInHead) != "function") { ClickTaleAppendInHead = function(element) { var parent = document.getElementsByTagName('head').item(0) || document.documentElement; parent.appendChild(element); } } if (typeof (ClickTaleXHTMLCompliantScriptTagCreate) != "function") { ClickTaleXHTMLCompliantScriptTagCreate = function(code) { var script = ClickTaleCreateDOMElement('script'); script.setAttribute("type", "text/javascript"); script.text = code; return script; } } var scriptElement = ClickTaleCreateDOMElement('script'); scriptElement.type = "text/javascript"; scriptElement.src = (document.location.protocol=='https:'? 'https://cdnssl.clicktale.net/www07/ptc/d2c72182-0889-4481-9b76-c140dfc0ee8e.js': 'http://cdn.clicktale.net/www07/ptc/d2c72182-0889-4481-9b76-c140dfc0ee8e.js'); document.body.appendChild(scriptElement); })(); </script> <!-- ClickTale end of Bottom part (XHTML) --> my website is this http://www.pakistanidressesshop.com/
  13. <!-- ClickTale Top part --> <script type="text/javascript"> var WRInitTime=(new Date()).getTime(); </script> <!-- ClickTale end of Top part --> <!-- ClickTale Bottom part (XHTML) --> <script type='text/javascript'> <!-- The ClickTale Balkan Tracking Code may be programmatically customized using hooks:--> function ClickTalePreRecordingHook() { ClickTaleFetchFromWithCookies.setFromCookie(/^ASPSESSIONID.*/); window.ClickTaleFetchFrom = ClickTaleFetchFromWithCookies.constructFetchFromUrl(); ClickTaleEventsMask-=4; } <!-- For details about ClickTale hooks, please consult the wiki page http://wiki.clicktale.com/Article/Customizing_code_version_2--> <!-- Add this to "OnDomLoad" event--> (function(){ if (typeof (ClickTaleCreateDOMElement) != "function") { ClickTaleCreateDOMElement = function(tagName) { if (document.createElementNS) { return document.createElementNS('http://www.w3.org/1999/xhtml' tagName); } return document.createElement(tagName); } } if (typeof (ClickTaleAppendInHead) != "function") { ClickTaleAppendInHead = function(element) { var parent = document.getElementsByTagName('head').item(0) || document.documentElement; parent.appendChild(element); } } if (typeof (ClickTaleXHTMLCompliantScriptTagCreate) != "function") { ClickTaleXHTMLCompliantScriptTagCreate = function(code) { var script = ClickTaleCreateDOMElement('script'); script.setAttribute("type", "text/javascript"); script.text = code; return script; } } var scriptElement = ClickTaleCreateDOMElement('script'); scriptElement.type = "text/javascript"; scriptElement.src = (document.location.protocol=='https:'? 'https://cdnssl.clicktale.net/www07/ptc/d2c72182-0889-4481-9b76-c140dfc0ee8e.js': 'http://cdn.clicktale.net/www07/ptc/d2c72182-0889-4481-9b76-c140dfc0ee8e.js'); document.body.appendChild(scriptElement); })(); </script> <!-- ClickTale end of Bottom part (XHTML) --> I installed this module, and then pasted this code in its window and checked installations from clicktale website BUT its not working plus when i save the code on admin side it never save sucessfully also it shows the page that "page not found"
×
×
  • Create New...

Important Information

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