Jump to content

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

Layout Create New Location Rate Topic   - - - - -

 
  • cleapex
  • Newbie
  • Trial users
  • Join Date: 18-Nov 15
  • 9 posts

Posted 14 August 2017 - 07:13 PM #1

Hi there,

 

I am trying to duplicate a page layout. I have a custom layout for my products.view. However, I want a different layout for each product. I've built a custom layout that I would like to copy and change for the other products.

 

Is it possible to copy the layout location inside the XML file and just make another layout of same sort? I've spent hours now trying to figure it out. However, I cannot get it working. It seems some values are stored in the database, so I probably need to use the visual builder?

 

Thanks

Chris



 
  • oleg.gorshkov
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 2,246 posts

Posted 16 August 2017 - 05:41 AM #2

Hi there,

 

I am trying to duplicate a page layout. I have a custom layout for my products.view. However, I want a different layout for each product. I've built a custom layout that I would like to copy and change for the other products.

 

Is it possible to copy the layout location inside the XML file and just make another layout of same sort? I've spent hours now trying to figure it out. However, I cannot get it working. It seems some values are stored in the database, so I probably need to use the visual builder?

 

Thanks

Chris

 

Hello Chris!

 

Why don't you use the layouts tab on the product details page?


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE
Testing by QA and personal manager for free.

 
  • cleapex
  • Newbie
  • Trial users
  • Join Date: 18-Nov 15
  • 9 posts

Posted 17 August 2017 - 05:50 PM #3

Hi,

 

I want a specific layout for each product. However, that layout was a lot of work to build. Having to manually build it for each product, is a lot of work. Isn't there a way to copy it? I've tried it through the layouts.xml file, however, the containers seem to have unique IDs that are stored in the database. So those need to be created somehow?

 

Thanks

Chris



 
  • cleapex
  • Newbie
  • Trial users
  • Join Date: 18-Nov 15
  • 9 posts

Posted 24 August 2017 - 08:56 AM #4

Anyone? I cannot think that I'm the first person ever that wants to do this?

 

Thanks

Chris



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,404 posts

Posted 24 August 2017 - 01:13 PM #5

Anyone? I cannot think that I'm the first person ever that wants to do this?

 

Thanks

Chris

 

I am afraid, it is not possible to import layout for each product


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • cleapex
  • Newbie
  • Trial users
  • Join Date: 18-Nov 15
  • 9 posts

Posted 31 August 2017 - 09:30 AM #6

That's really sad.

 

If one has complex products, I really is a lot of work to do the layout for each product.

 

Anyways, thank you.

 

Regards

Chris



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,404 posts

Posted 31 August 2017 - 01:05 PM #7

That's really sad.
 
If one has complex products, I really is a lot of work to do the layout for each product.
 
Anyways, thank you.
 
Regards
Chris


Hire someone to perform this modification for you. Our team is at your service


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • Alt-team
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 18-Jan 11
  • 2,397 posts

Posted 31 August 2017 - 03:01 PM #8

Contact our Cs-Cart developers too. We are ready to help.

 

Best regards,

Alt-team.


CS-Cart add-ons | CS-Cart development | Product Designer Software | GET A FREE QUOTE

 
  • oleg.gorshkov
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 2,246 posts

Posted 03 September 2017 - 06:00 PM #9

We also will be glad to help you. Please contact us at sales@simtechdev.com


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE
Testing by QA and personal manager for free.

 
  • cleapex
  • Newbie
  • Trial users
  • Join Date: 18-Nov 15
  • 9 posts

Posted 12 September 2017 - 02:36 PM #10

Thanks.

 

I'll send you a mail.

 

I have another question. Is it possible to add a new template for a block? For the Testimonials block, there is just 1 template in the default theme. Is it possible to create a another template?

 

Thanks

Chris



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,404 posts

Posted 13 September 2017 - 07:04 AM #11

 

I have another question. Is it possible to add a new template for a block? For the Testimonials block, there is just 1 template in the default theme. Is it possible to create a another template?

 

 

All templates are listed in the following file:

 

app/addons/discussion/schemas/block_manager/blocks.post.php

    'templates' => array(
        'addons/discussion/blocks/testimonials.tpl' => array(),
    ),

You can extend this schema with the addon or edit the file directly


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • cleapex
  • Newbie
  • Trial users
  • Join Date: 18-Nov 15
  • 9 posts

Posted 13 September 2017 - 12:48 PM #12

All templates are listed in the following file:

 

app/addons/discussion/schemas/block_manager/blocks.post.php

    'templates' => array(
        'addons/discussion/blocks/testimonials.tpl' => array(),
    ),

You can extend this schema with the addon or edit the file directly

I'm not getting it right.

 

I want to be able to create “addons/discussion/blocks/testimonials1.tpl” for instance and then make my new template for that block. I want to display the testimonials in the page header and it must have a different layout from the rest. However, I'm not sure how to do this.

 

Would your company be able to do such changes?

 

Thanks

Chris



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,404 posts

Posted 13 September 2017 - 01:51 PM #13

I'm not getting it right.

 

I want to be able to create “addons/discussion/blocks/testimonials1.tpl” for instance and then make my new template for that block. I want to display the testimonials in the page header and it must have a different layout from the rest. However, I'm not sure how to do this.

 

Would your company be able to do such changes?

 

 

1. Replace

'addons/discussion/blocks/testimonials.tpl' => array(),

with

'addons/discussion/blocks/testimonials.tpl' => array(),
'addons/discussion/blocks/testimonials1.tpl' => array(),

2. Create new template in the following directory (just copy the default one)

 

design/themes/THEME/templates/addons/discussion/blocks/

 

3. Make necessary changes and clear cache 

 

4. Go to layout manager and replace default block with the new one

 

5. Check the result

 

PS Most possibly these changes will be deleted after next upgrade. It is better to extend schema with the My changes module

PS2 If you face any problem with the realisation, feel free to contact us to get a free quote


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • cleapex
  • Newbie
  • Trial users
  • Join Date: 18-Nov 15
  • 9 posts

Posted 13 September 2017 - 02:05 PM #14

Great, thanks! That solved the issue!

 

Any way I can give the 2nd template a different name?

 

Thanks

Chris



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,404 posts

Posted 14 September 2017 - 07:22 AM #15

Great, thanks! That solved the issue!

 

Any way I can give the 2nd template a different name?

 

Thanks

Chris

 

Just change first line of the template from

{** block-description:discussion_title_home_page **}

to

{** block-description:discussion_title_home_page1 **}

Then add discussion_title_home_page1 language variable on the Administration -> Languages -> Translations page


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия