- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2020 03:00 AM
Hi Experts,
- I have cloned, sc_cart page
- Cloned a widget SC Shopping Cart.
- Added cloned widget to the newly cloned page
But the cloned widget is not visible on the new page.
Under the preview tab, its not visible. I also checked accessing the page in Portal, still not visible.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2020 05:42 AM
There is youtube video which will definitely help you
Widget to Widget Communication on different page
https://www.youtube.com/watch?v=9vL7ZZQW6KA&t=1374s
Subscribe the channel if this video helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2020 03:40 AM
Hey,
Because at the run time the sc_shopping_cart widget need some data like id to render the widget functionality. try to preview the cloned widget in the widget editor it must not preview there only, if it is not then look for the code of the widget there must be change require.
If the above code helps then please mark my answer Correct and Helpful.
Thanks and Regards:
Siddhnath Pandey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2020 04:16 AM
Hi Siddhnath,
I checked it in preview and also checked by directly opening the page but its not rendering.
Do you have any idea which part of the code needs to be changed?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2020 05:09 AM
For that you have to clone ng-template & change option schema value it will work then.
In the original widget you will find the ng-template with name like in below Image:
But when you clone the this widget ng-tempate will not get clone automatically. that you have to create with different name like this image
After this when you drag this cloned widget on the page then you have to go to the option schema of the cloned widget where you will find Cart Template option field in that field you have to update this new name larg_shopping_cart_v3.html like in this image:
Then it will work for sure.
If the above code helps then please mark my answer Correct and Helpful.
Thanks and Regards:
Siddhnath Pandey

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2020 05:33 AM
In the cloned widget if you see server script line no. 18
data.sys_id = $sp.getParameter('sys_id');
In the above code this widget is receiving the sys_id from the URL based on the sys_id this widget renders the data.
So you have to pass the sys_id in to the URL when you are redirecting the clone page. with $location.search() method.
The Image which you have shared in the above, in that image see there is no sys_id in the url.
So there is no need to change in cloned widget though you have change some code into the page from which you are redirecting this cloned page which contain this cloned widget.
there must be a code $location.search('id=sc_cart_1&test='+t) something like this you need to find & change
If the above code helps then please mark my answer Correct and Helpful.
Thanks and Regards:
Siddhnath Pandey