claudiojcosta Posted November 6, 2015 Share Posted November 6, 2015 Good morning, I would like to know how to get the prices of products.I would like to leave the page alone as product catalogs.Thanks Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 6, 2015 Share Posted November 6, 2015 Welcome claudiojcosta! Glad to see you made it to the forums.Let's work with the template content.product.php first. Open that file for editing in a programmer's text editor.At the end of the file's contents, add {debug} and save the file back to the site.When you ask for the page, you will now get a popup of all the variables that were given to the template rendering engine, Smarty.Find $PRODUCT and you will see what all the data that is available to the template that pertains to the product - including prices.Now, keeping that popup window open, remove {debug} from the file's contents so that other visitors to your site won't be distracted by the popup. Quote Link to comment Share on other sites More sharing options...
claudiojcosta Posted November 7, 2015 Author Share Posted November 7, 2015 Hi bsmither ... Thank you very much for your reply.But I want not show all prices.Prices do not want to display en my page......you know if you can do that ???thanks again Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 7, 2015 Share Posted November 7, 2015 In "Catalogue" mode, CubeCart will still show prices. That's what catalogues do.In CubeCart's "Catalogue" mode, the visitor cannot checkout. The products cannot be purchased.What you can try to do is move the test for $CATALOGUE_MODE higher in the template:In content.product.php, near line 129, find: {if ($CTRL_ALLOW_PURCHASE) && (!$CATALOGUE_MODE)} Move that above this: <h3> {if $PRODUCT.ctrl_sale} Then, if in "Catalogue" mode, no prices will be displayed. You will also need to add code to Discount Prices to suppress displaying that. Quote Link to comment Share on other sites More sharing options...
claudiojcosta Posted November 9, 2015 Author Share Posted November 9, 2015 Does not work my friend. {if ($CTRL_ALLOW_PURCHASE) && (!$CATALOGUE_MODE)} <p class="buy_button"> <input type="text" name="quantity" value="1" class="quantity required" /> <input type="hidden" name="add" value="{$PRODUCT.product_id}" /> <input type="submit" value="{$LANG.catalogue.add_to_basket}" class="button_white" /> </p> {else} I move above{if isset($PRODUCT) && $PRODUCT}<h2>{$PRODUCT.name}</h2><form action="{$VAL_SELF}" method="post" class="addForm"> <div> <div id="product_detail"> {if $PRODUCT.ctrl_sale} <h1><span class="price_previous">{$PRODUCT.price}</span> <span class="price_sale">{$PRODUCT.sale_price}</span></h1> {else} <h1>{$PRODUCT.price}</h1> {/if} ---------------------------------------------------------I attachment fileThanks a lotbye content.product.php Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 9, 2015 Share Posted November 9, 2015 Ok, I see this is probably the Kurouto skin, not Foundation. (We needed to know this.)In your skin's content.product.php:FIND near line 67: {if ($CTRL_ALLOW_PURCHASE) && (!$CATALOGUE_MODE)} CHANGE to: {* if ($CTRL_ALLOW_PURCHASE) && (!$CATALOGUE_MODE) *} FIND near line 5: <div id="product_detail"> {if $PRODUCT.ctrl_sale} CHANGE to: <div id="product_detail"> {if ($CTRL_ALLOW_PURCHASE) && (!$CATALOGUE_MODE)} {if $PRODUCT.ctrl_sale} Because a skin file has been edited, you may need to clear CubeCart's cache. In admin, Maintenance, Rebuild tab, check the Clear Cache box and submit. Quote Link to comment Share on other sites More sharing options...
claudiojcosta Posted November 11, 2015 Author Share Posted November 11, 2015 Excellent my friendThank you very much for your help.I see everything well without prices, . but when users enter the system if they can see my prices.I can get that registered users can not see my prices ???or betterI can I disable the new user registration ??Thank you very much for your help Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 11, 2015 Share Posted November 11, 2015 Please try placing the store into Catalogue mode. Quote Link to comment Share on other sites More sharing options...
claudiojcosta Posted November 11, 2015 Author Share Posted November 11, 2015 Yes , this mode catalogue.but when users enter the system ...they can see my prices.------------------------------------I think it is better to disable the logging option for new users.You know how to disable that option ???many Thanks Quote Link to comment Share on other sites More sharing options...
claudiojcosta Posted November 19, 2015 Author Share Posted November 19, 2015 Hi bsmither :-)Thank you very much for all .But I need your help.I need to remove all the prices, I need a logged in user can not see prices.Can you help me please. I see the price "0"How I can remove the number 0 ?? Quote Link to comment Share on other sites More sharing options...
Nikki72 Posted November 19, 2015 Share Posted November 19, 2015 claudiojcosta It's difficult to understand what you're asking for exactly. Please don't take offense by this but I'm guessing English isn't your first language?Are you saying that you don't want anybody to see your product prices when they visit your store? Maybe if you could explain in a little more detail what kind of store you are wanting to have such as what is the purpose of the store? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.