Hello,
Situation: In a few situations I want to show product details in a layered java script window...in example, when the custumer is on a product and get offered the associated products. When I click on one associated product, the customer gets redirected to its product details. But here I wanna open like a popup window to show the details, that the customer do not leave the product page where he came from. Problem: The product detail page is rendered with all other page content (main decorator, left and right content bar, header, footer etc.) which I do not want to show on the popup window. So I am searching for the java class, or whatever where the class decides (depending from the URL) which view mapping in controller.xml is called. There I want to make like an if/else case to decide which view mapping is called. In the case that I want just the details without all other content, I would append sth. to the URL like: normal Url: .../ecommerce/massive-gizmo-GZ-7000-p append sth:/ecommerce/massive-gizmo-GZ-7000-p?showStandaloneDetails I checked the CatalogUrlFilter.java and the CatalogUrlServlet.java files, but I couldnt find it. Or is it the completly wrong way how i'm trying to do it? Is there a much simpler way to achieve it? Can anyone help me here on it? Thanks a lot, Robert |
Robert,
There is no support for this to show ajax product screen differently. But for sure you can do it by customizing the CatalogUrlServlet. Add one more screen for product say 'AjaxProduct', and use this in additional public final string same as PRODUCT_REQUEST in the CatalogUrlServlet.java. Checkout the code in LoginWorker.java file (isAjax () method), it will return the true/false if request is AJAX or not, implement the similar check in servlet and render the page you want. HTH! -- Rishi Solanki Manager, Enterprise Software Development HotWax Media Pvt. Ltd. Direct: +91-9893287847 http://www.hotwaxmedia.com On Tue, May 1, 2012 at 4:42 AM, Robert G. <[hidden email]> wrote: > Hello, > > *Situation:* > In a few situations I want to show product details in a layered java script > window...in example, when the custumer is on a product and get offered the > associated products. When I click on one associated product, the customer > gets redirected to its product details. But here I wanna open like a popup > window to show the details, that the customer do not leave the product page > where he came from. > > *Problem:* > The product detail page is rendered with all other page content (main > decorator, left and right content bar, header, footer etc.) which I do not > want to show on the popup window. > > So I am searching for the java class, or whatever where the class decides > (depending from the URL) which view mapping in controller.xml is called. > There I want to make like an if/else case to decide which view mapping is > called. > > In the case that I want just the details without all other content, I would > append sth. to the URL like: > > normal Url: .../ecommerce/massive-gizmo-GZ-7000-p > append sth:/ecommerce/massive-gizmo-GZ-7000-p*?showStandaloneDetails* > > I checked the CatalogUrlFilter.java and the CatalogUrlServlet.java files, > but I couldnt find it. > > Or is it the completly wrong way how i'm trying to do it? Is there a much > simpler way to achieve it? > > Can anyone help me here on it? > > Thanks a lot, > > Robert > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/controller-xml-product-view-mapping-tp4599668.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Many Thanks. I would do it this way:
instead of the Url pattern: p_xxxx I would use: ps_xxxx and decide with p or ps in CatalogUrlServlet which screen I want to render. To handle the url usage a little bit better, I want to change the macro "ofbizCatalogAltUrl" (calling with @ofbizCatalogAltUrl or adding a new macro for this case). But I cannot find the place where theses macros are defined. Its not in the ftl file cause it should be available global on all ecommerce sites. But where is it? :) Do anyone know that? Thanks |
Administrator
|
Check freemarkerTransforms.properties fileS
Jacques From: "Robert G." <[hidden email]> > Many Thanks. I would do it this way: > > instead of the Url pattern: p_xxxx > > I would use: ps_xxxx > > and decide with p or ps in CatalogUrlServlet which screen I want to render. > > To handle the url usage a little bit better, I want to change the macro > "ofbizCatalogAltUrl" (calling with @ofbizCatalogAltUrl or adding a new macro > for this case). But I cannot find the place where theses macros are defined. > Its not in the ftl file cause it should be available global on all ecommerce > sites. But where is it? :) > > Do anyone know that? > > Thanks > > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/controller-xml-product-view-mapping-tp4599668p4600579.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
ah yeah thanks! :)
|
Free forum by Nabble | Edit this page |