B.N Posted September 14, 2014 Share Posted September 14, 2014 I have project with Prestashop that need to show product description, product review form module, and tell friend form module with iframe. How can I use variable of Product class or module as iframe source? and if possible please give code example. I had looking for solution here but still don't get the point to use internal prestashop page as iframe source. I have try to use .html as source but the smarty script won't run. The prestashop version is 1.6 Link to comment Share on other sites More sharing options...
vekia Posted September 14, 2014 Share Posted September 14, 2014 im affraid that i don't get it ;-) you can use variable from Product class in <iframe> ? for what purposes? it will be much easier if you will say what you're trying to achieve (and where!) Link to comment Share on other sites More sharing options...
B.N Posted September 14, 2014 Author Share Posted September 14, 2014 Thanks for your respondThe purpose is like on the image belowhttp://postimg.org/image/r6fz5ubwp/I want to display $product->description and free module of product review from prestashop in iframe?is it possible? If I can't to do that, do you have any suggestion?I'll appreciate any response from other too Link to comment Share on other sites More sharing options...
vekia Posted September 15, 2014 Share Posted September 15, 2014 but where you want to display it? in prestashop? or somewhere else, on different websites? Link to comment Share on other sites More sharing options...
B.N Posted September 15, 2014 Author Share Posted September 15, 2014 I want display it in prestashop, I only use one site so I don't use external site. Link to comment Share on other sites More sharing options...
vekia Posted September 15, 2014 Share Posted September 15, 2014 okay so we are one step closer :-) on what page in prestashop? cms page? some other pages? Link to comment Share on other sites More sharing options...
B.N Posted September 15, 2014 Author Share Posted September 15, 2014 i want put that thing in Product.tplso is it possible? Link to comment Share on other sites More sharing options...
vekia Posted September 15, 2014 Share Posted September 15, 2014 now i don't get it again. if you will install reviews module it appears on product page by default (product.tpl is a product page template file) can i ask you WHY you want to display it in iframe? perhaps there are some other MUCH EASIER solutions than iframe (it iwll be necessary to create controller for this!) Link to comment Share on other sites More sharing options...
musicmaster Posted September 15, 2014 Share Posted September 15, 2014 BN, it might help if you showed us with code what you did/tried to do. Link to comment Share on other sites More sharing options...
B.N Posted September 15, 2014 Author Share Posted September 15, 2014 so is it possible to use iframe like that Vekia? or it'll takes time?that is design from referenced site. The owner want product page use tabs like that.If it's not possible so my designer need to change the design. Link to comment Share on other sites More sharing options...
B.N Posted September 15, 2014 Author Share Posted September 15, 2014 thanks for your respond musicmasterI still on the initial phase to work on that stuff and still confuse. Link to comment Share on other sites More sharing options...
El Patron Posted September 15, 2014 Share Posted September 15, 2014 before going off into iframe world, you would first need to tell PrestaShop it's ok to use iframe code. simply type in ifram in back office search box and review the two features http://screencast.com/t/UeC3CliiR Link to comment Share on other sites More sharing options...
B.N Posted September 15, 2014 Author Share Posted September 15, 2014 Yeah, that's awesome El Patron I have try to call external page and it's work nicely but I still don't get how to call internal page :s Link to comment Share on other sites More sharing options...
El Patron Posted September 15, 2014 Share Posted September 15, 2014 Yeah, that's awesome El Patron I have try to call external page and it's work nicely but I still don't get how to call internal page :s poco a poco (little by little) Link to comment Share on other sites More sharing options...
vekia Posted September 15, 2014 Share Posted September 15, 2014 but in prestashop there is no page like page you want to display. why you want to display in iframe? you can just create <div> with scrolling, it will look like iframe... Link to comment Share on other sites More sharing options...
musicmaster Posted September 15, 2014 Share Posted September 15, 2014 My suggestion would be to use the Yotpo module. It is free and does about the same as what you want. And it can be installed without a lot of work. 1 Link to comment Share on other sites More sharing options...
El Patron Posted September 15, 2014 Share Posted September 15, 2014 I agree with whatever is made to work 'with' PrestaShop is better than if you are re-inventing the wheel. iframe? this shop also have animated gifs and music with no mute button?...jajajajaja...happy day, el 1 Link to comment Share on other sites More sharing options...
B.N Posted September 16, 2014 Author Share Posted September 16, 2014 @vekia: yes, because I need display the information and form in a container inside tab so when the product comment from customers appear, the tab still have same height. So it won't messing contain below the tab. So you suggestion is to use the other way. Isn't it?@musicmaster: thanks for your suggestion. I think, product comment from prestashop has meet the requirement @el Patron: hahahaha, OK El Patron. I need to change my mind now with this iframe 1 Link to comment Share on other sites More sharing options...
trimark Posted January 25, 2016 Share Posted January 25, 2016 I want to put an Iframe page in a CMS document. I can put videos in so I know iframe works. I am on cloud. this is my code. <div style="border: 0px solid #D5CC5A; overflow: hidden; margin: 15px auto; max-width: 750px;"> <iframe scrolling="no" src="http://www.ironcad.com/index.php/support/catalog-content" style="border: 0px none; ; height: 800px; margin-top: -200px; width: 750px;"> </iframe> </div> I had it working fine in Volusion. So I am wondering if I am missing something. Some sort of syntax or something. Link to comment Share on other sites More sharing options...
Recommended Posts