Mani rathnam Posted September 17, 2016 Share Posted September 17, 2016 (edited) Hi All, I am using PS 1.6.1.3. "All Specials" link is not getting displayed in the Special products screen. Using Specials block v1.3.1 developed by PS. I made discount for 5 products and kept the "Product to be displayed" as 3 in the module setup. I am able to see the products in the Special Products page. But not seeing the "All Specials" link in the page. I have checked the code in the below template file. themes/default/modules/blockspecials/blockspecials.tpl i am seeing the code to display the link. But i donno why it is not working. Can you anyone please help me to fix this issue ? Regards, Mani Edited September 17, 2016 by manirathnam1988 (see edit history) Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 19, 2016 Author Share Posted September 19, 2016 Hi , Anyone please help me on this ?? Thanks in Advance. Mani Link to comment Share on other sites More sharing options...
rocky Posted September 20, 2016 Share Posted September 20, 2016 Can you provide a link to your website? Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 20, 2016 Author Share Posted September 20, 2016 Hi Rocky, URL : www.colorconceptions.com/ps1610 Thanks in Advance. Mani Link to comment Share on other sites More sharing options...
rocky Posted September 20, 2016 Share Posted September 20, 2016 Are you trying to edit the specials on the homepage? If so, you're editing the wrong template file. You should be editing themes/default/modules/blockspecials/blockspecials-home.tpl. Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 20, 2016 Author Share Posted September 20, 2016 Hi Rocky, I am not editing the file. I want to see the "All Specials" link in the page which are already available in the code. Regards, Mani Link to comment Share on other sites More sharing options...
rocky Posted September 20, 2016 Share Posted September 20, 2016 There is no "All Specials" link displayed on the homepage. It's only displayed when the module is installed in the left or right column. I don't see any left and right columns on your category pages, so I'm assuming you don't have the module installed there. You'll need to copy modules/blockspecials/views/templates/hook/blockspecial-home.tpl to themes/default/modules/blockspecials/blockspecial-home.tpl and then add the following from blockspecials.tpl to the end of the file: <div> <a class="btn btn-default button button-small" href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" title="{l s='All specials' mod='blockspecials'}"> <span>{l s='All specials' mod='blockspecials'}<i class="icon-chevron-right right"></i></span> </a> </div> Hopefully, this will add an "All specials" link to the bottom of the homepage special products, though it might need some restyling. Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 20, 2016 Author Share Posted September 20, 2016 Thanks a lot rocky. Yes. We didn't install on the right or left columns. It is added as a tab to the new products. I will try and get back to you with the result. Once again Thanks rocky Mani Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 21, 2016 Author Share Posted September 21, 2016 Hi Rocky, I have tried the steps which you have mentioned. But no luck. Can you please help ? below is the blockspecial-home.tpl file code looking after adding the lines. Kept the file in the /themes/default/modules/blockspecials/blockspecial-home.tpl {if isset($specials) && $specials} {include file="$tpl_dir./product-list.tpl" products=$specials class='blockspecials tab-pane' id='blockspecials'} {else} <ul id="blockspecials" class="blockspecials tab-pane"> <li class="alert alert-info">{l s='No special products at this time.' mod='blockspecials'}</li> </ul> {/if} <div> <a class="btn btn-default button button-small" href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" title="{l s='All specials' mod='blockspecials'}"> <span>{l s='All specials' mod='blockspecials'}<i class="icon-chevron-right right"></i></span> </a> </div> Thanks in Advance Mani Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 25, 2016 Author Share Posted September 25, 2016 Hi Rocky, Can you please help me on this ?? Regards, Manirathnam S Link to comment Share on other sites More sharing options...
rocky Posted September 25, 2016 Share Posted September 25, 2016 Unfortunately, this ended up being much more difficult than I thought it would be. I did manage to get it to work with the following code: {if isset($specials) && $specials} {capture assign="product_list"}{include file="$tpl_dir./product-list.tpl" products=$specials class='blockspecials tab-pane' id='blockspecials'}{/capture} {$product_list|replace:'</ul>':''} <a class="btn btn-default button button-small" href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" title="{l s='All specials' mod='blockspecials'}" style="float:left;clear:left;margin:1em;"><span>{l s='All specials' mod='blockspecials'}<i class="icon-chevron-right right"></i></span></a> </ul> {else} <ul id="blockspecials" class="blockspecials tab-pane"> <li class="alert alert-info">{l s='No special products at this time.' mod='blockspecials'}</li> </ul> {/if} Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 25, 2016 Author Share Posted September 25, 2016 Thanks a lot Rocky. i will try now and update you. Thanks once again. Regards, Manirathnam S Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 25, 2016 Author Share Posted September 25, 2016 Hi Rocky, I have tried pasting the code in the file /themes/default/modules/blockspecials/blockspecial-home.tpl . Still the link is not visible in the screen. Not sure what i am missing here. Can you please check ? Thanks for your time. Mani Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 25, 2016 Author Share Posted September 25, 2016 Hi Rocky, I am having another doubt. Actually we have 3 folders under the themes folder. default , default-bootstrap and default-bootstrap-file. not sure where i should place the file "blockspecial-home.tpl". Can you please guide me ?? Thanks Mani Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 25, 2016 Author Share Posted September 25, 2016 Hi Rocky, I have tried changing the original file itself (for testing purpose.). Now i am seeing the "All Specials" link. Not sure why it is not reflecting when i keep the files in the themes folder. I know, it is not recommended to change the original files directly. Can you please guide me ?? Thanks in advance Mani Link to comment Share on other sites More sharing options...
rocky Posted September 25, 2016 Share Posted September 25, 2016 I checked your website and it appears you are currently using themes/default-bootstrap. Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 25, 2016 Author Share Posted September 25, 2016 (edited) Thanks Rocky. I have placed the file in the default-bootstrap. Still no luck. It is working fine when i touch the original file. is there any setup do I have to do to get reflect from the themes folder ?? It is little bit urgent. Please advice me on this. Regards, Mani Edited September 25, 2016 by manirathnam1988 (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted September 26, 2016 Share Posted September 26, 2016 There's nothing you need to do for theme overrides to work, they should just work. I don't understand why they aren't working for you. I guess you'll have to modify the core files and keep a log of them for when you upgrade in the future. Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 26, 2016 Author Share Posted September 26, 2016 Thanks Rocky. I will update my client. Just let me know(post here) if you get to know what went wrong here for me. It will be helpful for others if they face same issue. Thanks for your support and patience. Thanks a lot. Mani. Link to comment Share on other sites More sharing options...
rocky Posted September 26, 2016 Share Posted September 26, 2016 Unfortunately, I can't tell you why your theme overrides aren't working unless I actually look at your website's code using FTP. Link to comment Share on other sites More sharing options...
Mani rathnam Posted September 26, 2016 Author Share Posted September 26, 2016 Thanks Rocky. Thanks for your time. I will try it in PROD instance also and will move from there. Thanks once again. Mani Link to comment Share on other sites More sharing options...
Mani rathnam Posted October 16, 2016 Author Share Posted October 16, 2016 Thanks Rocky. It is working fine. I have changed in the main file itself. Again, Thanks for your time Rocky. Regards, Mani 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