How do I embed product details in page?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

How do I embed product details in page?

Post by CapereSpiritum »

Hi Guys

I have an online shop using
CGEcommerceBase 1.3.11
CGExtensions 1.31
CGPaymentGatewayBase 1.1
CGSimpleSmarty 1.5.2
Cart 1.8.4
CustomContent 1.8.3
FrontEndUsers 1.18.1
JQueryTools 1.1.1
Orders 1.13.3
PaypalGateway 2.3.9
Products 2.18.4

I am attempting to write a standard CMSMS page but embed {smarty} to display a specific Product Details inc add to cart button.

I have no problem getting Hierarchy to display in the same way using sometnig like this

Code: Select all

 {Products hierarchyid='11'}
.

Anyone else done this?
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: How do I embed product details in page?

Post by manuel »

Dear CapereSpiritum,

Although I could be misinterpreting your question...

If you want to gain access to all the variables from a certain module in a location where they are not readily available, you can call the module and "trash it". After that line of code, you will have access to everything in the module.

Code: Select all

{ModuleName assign="trash"}
or

Code: Select all

{capture assign="trash"}{ModuleName}{/capture}
Greetings,
Manuel
Do you like your open source cms? Buy from the CMSMS partners || Donate
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: How do I embed product details in page?

Post by CapereSpiritum »

Hi Manuel

Thanks for your reply. I tried both your code snippets and I got a blank page for each of them...

Here's what I'm trying to do...
I can display a list of hierarchy's with this:

Code: Select all

{Products action=hierarchy}
or a specific hierarchy with this:

Code: Select all

{Products hierarchyid='7'}
This page shows both in action. The 1st in a global content block to the left and the 2nd in the main content.

I want to display an individual product details which can be found by clicking any of the links in the main content. Here's the 1st one from above

Here is a shortened list of available parameters:
hierarchy -- Display an item list by hierarchy
categorylist - Display a list of item categories
default - Display a summary of items
details - Display a detail view of a single item
fieldlist - Display a list of values from a specified field.
- This action can be used to create a navigation from the values of a specific field. i.e: you could create a custom dropdown field called "color" and then create a navigation based on the different colors.
(optional) productid="" - Useful only with the detail action, this parameter indicates what item to use for the display.
(optional) detailpage="" - This specifies the pageid or alias that should be used to display the detail report. It can be used with the default or search actions. This option is not compatible with pretty urls of any sort.

I hope that makes sense.
JimboDavies
Forum Members
Forum Members
Posts: 130
Joined: Fri Feb 25, 2011 3:58 pm

Re: How do I embed product details in page?

Post by JimboDavies »

Hi CapereSpiritum,

I'm not entirely sure what you're trying to achieve. At the moment, using hierarchy, you have menus in two places on your page. Clicking on a link in either of those menus gives you the individual products details, complete with an add to cart button.

What is it you're trying to do that doesn't already happen? If you can explain it differently, I may be able to help!

Cheers,

Jimbo
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

Re: How do I embed product details in page?

Post by CapereSpiritum »

Hi Jimbo

I have a good number of pages that are well listed in the search engines.

Rather than have additional clicks to get to the 'Add to Cart', I want to add the 'detail' section directly into my listed pages.

e.g. So that my Matt Laminated Business Cards page actually has all that a visitor would need to order. Rather than yet another click before they can order.

Shortening the journey will increase business...

Thanks.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: How do I embed product details in page?

Post by Dr.CSS »

Have you looked at the Help to see how to call a product in detail view..?
Post Reply

Return to “Modules/Add-Ons”