Jump to content

prices showing in catalogue mode


Quiztoon

Recommended Posts

I see at least two parts that need to be changed <strong>if</strong> we can simply modify a feature: admin screen Store Settings, Features tab, "Hide prices until logged in". Should you accept the premise that you want catalogue mode to not show prices under any circumstances (not just when a visitor is not logged in), we can use this feature.

However, this feature shows (1) $X.XX instead of the actual price and (2) the phrase "Login to view price" instead of the Add to Basket button. So, the second part is finding all the logic that decides which to show and change what it shows.

Part one is here -- in the file classestax.class.php around line 38, remove just this part: !User::getInstance()->is()

Part two appears to be controlled in the skin. In the skin file content.product.php, find the section that resembles:


    {if ($CTRL_ALLOW_PURCHASE) && (!$CATALOGUE_MODE)}

		    <p class="buy_button;">

				<input name="quantity" value="1" class="quantity" required="" type="text">

				<input name="add" value="{$PRODUCT.product_id}" type="hidden">

				<input value="{$LANG.catalogue.add_to_basket}" class="button_white" type="submit">

			</p>

	{else}

		{if $CTRL_HIDE_PRICES}

			<p class="buy_button"><strong>{$LANG.catalogue.login_to_view}</strong></p>

		{else if $CTRL_OUT_OF_STOCK}

			<p class="buy_button"><strong>{$LANG.catalogue.out_of_stock}</strong></p>

		{/if}

	{/if}

(2) We can try deleting (or commenting) this part: <p class="buy_button">{$LANG.catalogue.login_to_view}

(1) The X.XX can be changed in the admin screen, Languages, Your_Language, Catalogue group, 'price_hidden'. Apparently, HTML tags are permitted, so you could change this to <span class="required-error">CALL!</span>.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...