Jump to content

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

Style Is Ignored In My Custom Template Rate Topic   - - - - -

 
  • nnaaddrr
  • Newbie
  • Trial users
  • Join Date: 21-May 20
  • 4 posts

Posted 21 May 2020 - 07:05 PM #1

Hi, I am fairly new to cs cart.

 

I created a custom controller in:

app/controllers/frontend/test.php

 

and created a tpl file to go with it in:

design/themes/responsive/templates/views/test/view.tpl

 

 

When I write the url: www.mywebsite.com/index/php?dispatch=test.view

 

 

The (view.tpl) page gets recognized by the controller, but the content of (view.tpl) doesn't show and all global style on other pages in y website is lost in this page, and the title of the page comes as url path?

 

No Idea what is going on?



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

Posted 22 May 2020 - 05:39 AM #2

- create new layout page for test.view dispatch

- in the layout page settings fill up meta data

- do not forget to add Main content block to this page


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)

 
  • nnaaddrr
  • Newbie
  • Trial users
  • Join Date: 21-May 20
  • 4 posts

Posted 23 May 2020 - 02:11 PM #3

Thank you, that solved my problem.



 
  • nnaaddrr
  • Newbie
  • Trial users
  • Join Date: 21-May 20
  • 4 posts

Posted 23 May 2020 - 02:19 PM #4

The view shows now, but I doesn't seem to recognize the website overall css styles?



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

Posted 25 May 2020 - 08:20 AM #5

deleted

Attached Files


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)

 
  • nnaaddrr
  • Newbie
  • Trial users
  • Join Date: 21-May 20
  • 4 posts

Posted 25 May 2020 - 01:32 PM #6

Thank you for replying, but that doesn't really answer my question. I want to know why the styles.css is applied on all pages (tpl) except the one I made?



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

Posted 25 May 2020 - 01:56 PM #7

Sorry, my post was for another thread. 

 

Looks like somewhere custom CSS classes are missed. Check "User-defined CSS class" value of all blocks and grids


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)