Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Problem In My Changes Addon Rate Topic   - - - - -

 
  • Rajibul
  • Newbie
  • Members
  • Join Date: 29-Mar 14
  • 10 posts

Posted 30 March 2014 - 04:11 AM #1

I had some missing file for My changes addon. Now I have the fallowing files:-

1. /design/themes/basic/my-template/css/addons/my_changes/styles.css

2. design/themes/basic/templates/addons/my_changes/hooks/index/styles.post.tpl

3. /design/themes/my-template/css/addons/my_changes/styles.less

and in styles.post.tpl I have paste these line :-

{style src="addons/my_changes/styles.css"}
{style src="addons/my_changes/styles.less"}


But when I wrote some css code in styles.css
body {Background-color:red;}
for testing, was not working. Please help me for solving this.

Thank You.

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11442 posts

Posted 30 March 2014 - 04:32 AM #2

I think the path of your css files is incorrect. You need to get rid of 'my_template'.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Rajibul
  • Newbie
  • Members
  • Join Date: 29-Mar 14
  • 10 posts

Posted 30 March 2014 - 04:44 AM #3

I think the path of your css files is incorrect. You need to get rid of 'my_template'.

Ohh Sorry the right path is /design/themes/basic/css/addons/my_changes

 
  • Rajibul
  • Newbie
  • Members
  • Join Date: 29-Mar 14
  • 10 posts

Posted 30 March 2014 - 05:25 AM #4

I think the path of your css files is incorrect. You need to get rid of 'my_template'.


My Path was right I dont understand why didn't it work. :(

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 30 March 2014 - 05:47 AM #5

You need to clear also cache and put store in development mode by uncomment into file
#config.php
//define('DEVELOPMENT', true);

#clear cache you need to add into the backend url ?cc&ctpl (after you are on dev mode you can use them also in frontend)
http://www.example.com/admin.php?cc&ctpl

For the body please use
body { background-color:red!important; }
because css styles are loaded before loading theme styles

---
Valentin
part of hungryweb.net

 
  • Rajibul
  • Newbie
  • Members
  • Join Date: 29-Mar 14
  • 10 posts

Posted 30 March 2014 - 06:39 AM #6

You need to clear also cache and put store in development mode by uncomment into file
#config.php

//define('DEVELOPMENT', true);

#clear cache you need to add into the backend url ?cc&ctpl (after you are on dev mode you can use them also in frontend)
http://www.example.com/admin.php?cc&ctpl

For the body please use
body { background-color:red!important; }
because css styles are loaded before loading theme styles

---
Valentin
part of hungryweb.net


Thank You Valentin let me a try :)

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 30 March 2014 - 08:28 AM #7

The best solution that i found not for long is to go to Visual Editor and i save as a new theme (change something and after you click save will ask you the name for the new theme ;) ) and after that you can find the file
design/themes/basic/styles/data/[STYLE_NAME].css
and you need to edit this file, will be loaded at the end of styles and you will not need to use !important

---
Valentin
part of hungryweb.net

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11442 posts

Posted 30 March 2014 - 08:33 PM #8

You can't have the styles.post.tpl file in one tree and the css/less files in another. So if 'my-template' is correct, then you need to have all your files under that tree.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19959 posts

Posted 31 March 2014 - 07:27 AM #9

@Rajibul,

The correct paths are:

1. /design/themes/my-template/css/addons/my_changes/styles.css

2. /design/themes/my-template/templates/addons/my_changes/hooks/index/styles.post.tpl

3. /design/themes/my-template/css/addons/my_changes/styles.less

Do not forget to clear the cahe. Thanks
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Rajibul
  • Newbie
  • Members
  • Join Date: 29-Mar 14
  • 10 posts

Posted 01 April 2014 - 11:41 AM #10

Thanks everyone for helping :)

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19959 posts

Posted 01 April 2014 - 11:59 AM #11

Thanks everyone for helping :)


You are welcome! Contact me if you have any questions.
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • robert89
  • Advanced Member
  • Members
  • Join Date: 15-Feb 16
  • 60 posts

Posted 25 March 2016 - 08:14 PM #12

Hello,

Please somebody tell how i make a category of my website to be NOFALLOW in google index?

Thx!



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11442 posts

Posted 25 March 2016 - 09:17 PM #13

Restrict the name in robots.txt


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.