Jump to content

Product Info Tab


Recommended Posts

Hi folks,

New CC user here...sorry if this is in the the wrong category or if it is obvious (and I missed it)

Working to edit CC6 version of foundation skin - when I click on my products, it takes me to the product info/spec tabs.  Where can I add text for the product info tab?  I have text in both simple and descriptions text block for the product...I also want to change the tab Product info Title if you could advise on that as well..Thanks! 

I have included a screen grab and my URL...thanks in advance!  Jim  (CoffeeGuy)

https://oldetownecoffeeroastery.com/barista-blend.html

Product Info Tab - Olde Towne Coffee Roastery - Opera.jpg

Link to comment
Share on other sites

In admin, Languages, click the edit icon for the language your store is using.

On the next page, from the drop-down selector, choose Catalogue. A few seconds later, a list will appear.

Scroll to the phrase key 'product_info'. Click once just immediately to the left of the text entry box and the box will become editable. Change the phrase to what is desired and Save.

Link to comment
Share on other sites

BSmither - thanks!....Next "bigger" question.  I have removed all products from the featured item list as I don't need it, but is it possible to add a text "box" along the right side?  

https://oldetownecoffeeroastery.com/

Please see my mock up attached...I know there must be a way just not sure the best approach...or which file(s) to edit...thnx!

regards,

 

Jim

 

Text1.jpg

Link to comment
Share on other sites

There's the manual way and there is the plugin way.

I suggest the plugin way. Please see the Extensions Store.

The manual way is to change the contents of the skin template box.featured.php. Remove the leading {if $featured} and last {/if}, keep the <div> and </div>, and replace all else with what you want to say.

Link to comment
Share on other sites

As a follow on (sorry)  - I tried it manually and it works great! Still have some cosmetic tweaking to do but much happier! ( I am fairly comfortable with coding)  - I only want the text box to show on the "homepage." How do I exclude form other "pages." Sorry - should have thought of it earlier....thnx

Jim

Link to comment
Share on other sites

In the template main.php:

Find:

<div class="row {$SECTION_NAME}_wrapper">

Note that the $SECTION_NAME value is "home" when showing the HomePage. We can use this.

In box.featured.php:

Where there was:

{if $featured}

Use:

{if $SECTION_NAME eq "home"}

Be sure to put back the {/if} at the end.

 

Link to comment
Share on other sites

Continuing to edit my site: https://oldetownecoffeeroastery.com/   (still in rough form)

Thanks to all for the guidance and support.  Looking to change the font type (to Monotype Corsiva or Times New Roman perhaps) on the home page:  "Welcome to Olde Towne Coffee Roastery" but can not find where to do that.  I can edit what it says in the admin panel, and when I use the inspector it tells me to look in content.hompage.php (I think) but  have looked and can not isolate where/how to change it...     Included URL (above) so you can see what I am wanting to change if necessary. Thanks..again!!

Regards, 

Jim

Link to comment
Share on other sites

In the skin file cubecart.default.php, add a CSS rule:

.home_wrapper #content_homepage h1:first-child {font-family: "times roman";}

You may want to use a real fancy font (Monotype Corsiva) but realize this is happening in the visitor's browser - whose system may not have that font.

To really push the issue, in main.php (or element.css.php), you can add another request to fonts.googleapis.com to have your site load up a font of your choice.

Link to comment
Share on other sites

Bsmither - thanks for all your support and guidance!  I know what you mean about fonts..I'll keep it simple for now.  I can always remove the text and add a text image I create and upload if I get worked up over it!   Regards,  Jim

Link to comment
Share on other sites

Almost there - I hope!  I have been trying using guidance from a previous post to remove the product info tabs (since no text shows there for me anyway) so I could use help in "fixing" this please.  I have tried  various coding fixes - including to add the code to cubecart.default.css  The code I used from the forum (see attached PDF) worked partially...can't sort out what I am doing wrong, so any help would be much appreciated!

 

https://oldetownecoffeeroastery.com

content.product.php screen grab.jpg

Fresh Roasted Coffee Bean 1 lb Combo Sampler - Olde Towne Coffee Roastery.jpg

Adding other info to better see what I used to change the code:

(2015 entry I believe
In the Foundation skin ?le content.product.php, ?nd these two statements near lines 140 and 149:
140: <dl class="tabs" data-tab data-options="deep_linking:true; scroll_to_content:false">
149: <div class="tabs-content">
What we will do is apply a CSS style to make them disappear: style="display:none;"
140: <dl class="tabs" data-tab data-options="deep_linking:true; scroll_to_content:false" style="display:none;">
149: <div class="tabs-content" style="display:none;">
You may need to clear the skin cache after having edits to the skin ?le: admin, Maintenance, Rebuild tab, Clear Cache.

 

Tried various approaches...no luck...thnx!

 

Link to comment
Share on other sites

so on to the next issue I guess...As I am entering product descriptions (admin panel) they are truncated with ... or the text after certain length disappears.  I have entered then in both the long and the short as an experiment (failed of course)  I have looked for the setting to extend the length of the text box but to no avail...would like the box to expand vertically to accommodate text  as some descriptions are longer than others.  Thought about adding foundation pop up cards (on hover)  but bailed on the idea quickly :)  Thanks!  Jim

 

https://oldetownecoffeeroastery.com/fresh-roasted-coffee-beans-sampler-packs.html

truncated product descriptions.jpg

Link to comment
Share on other sites

The product panel in list_view mode of the View Category (includes Sales and Searches) page will grow as tall is it needs to accommodate the contents.

Please visit admin, Store Settings, Layout tab, Layout Settings section, "Length of product precis". Set this value to a reasonably high value (120 is preset at installation) or zero for no chopping at all.

Then, endevor to keep the short descriptions at under that value.

Link to comment
Share on other sites

Back once again...

Need to change some links but can't find them  for all the items listed on the home page I need the samples (when clicked) to got to the samples page with descriptions  for example:

  From the home page https://oldetownecoffeeroastery.com/  

When I click on a sample (4 oz.)  item link it goes to :

https://oldetownecoffeeroastery.com/olde-towne-s-sampler-pack.html  (worthless as it has no description of the product)

but I want all samples links when clicked on home page to go to:

https://oldetownecoffeeroastery.com/fresh-roasted-coffee-beans-sampler-packs.html

same for 1 lb products:


https://oldetownecoffeeroastery.com/  

https://oldetownecoffeeroastery.com/coffee-selections/costa-rica.html (worthless as it has no description of the product)

but I want all 1 lb links when clicked on home page to go to:
https://oldetownecoffeeroastery.com/barista-blend-fresh-roasted-coffee-beans.html

 

or find better yet find a  way to add descriptions to the currently "worthless" link pages :)

 

Thanks!

 

Jim

Also need to change the order of the items on the home page...thanks!

Link to comment
Share on other sites

Also need to change the order of the items on the home page...

 

Also added this to the cubecart.default.css (trying to dress up the edited feature block I now use for bullets) file but it isn't showing up

(also tried it inline on the content.featured.php to no avail)

.panel #box-featured {
  box-shadow: 5px #663300;
  box-radius: 7px;
  border: 1.5px solid #9e0c0f;
}
 

Sorry for the numerous issues..tried to break them out but it keeps adding them to the same query 

Link to comment
Share on other sites

" or find better yet find a  way to add descriptions to the currently "worthless" link pages "

Not sure what you mean by "link pages". The " olde-towne-s-sampler-pack.html" page is a Product page. The admin has the ability to add a specific description (and a short description) to each product.

If there is a reason why you have difficulty entering a description for your product's, please describe that problem.

There is this: https://www.cubecart.com/extensions/plugins/custom-product-display-order

With CC6.2+, CSS and javascript files are combined and CubeCart caches the result. That means to see changes made to these page resources will require clearing CubeCart's cache.

With respect to:

<div class="panel" id="box-featured">

The above mentioned CSS selector is using both the panel class and box-featured ident. Two things:
* Using just the ident is sufficient, and
* The syntax shown will first look for all tags having class panel, then select only those descendants that have an ident of box-featured. That means, the expected target <div> is not the thing selected.

Link to comment
Share on other sites

Bsmither,

 

Thanks... I tried to show what I am wanting to do by providing the page links; obviously I was unclear  in explaining my goal, my apologies.  It has nothing to do with adding descriptions - I have the descriptions entered as I need them.  When my customer click on the linked images on the home page, it takes them to a larger picture that contains nothing but the large image  and an add to cart button (no description).  

When on the homepage if they click the category tabs (or the breadcrumbs) it takes them to the descriptions for either the 1lb bags or the 4 oz. samples.  All I wanted to do was to link the the images on the homepage to appropriate  category pages that have the descriptions  versus the large image page.   

I will look at the link item you provided. I am very familiar with clearing the cache as I do that after reloading my edited files via ftp.   Also thanks for the css clarification.

Really appreciate your assistance.

Regard,

 

Jim

 

Link to comment
Share on other sites

"When my customer click on the linked images on the home page, it takes them to a larger picture that contains nothing but the large image  and an add to cart button (no description)."

There is no description because you choose to not enter a description for (certain) product(s)?

And, what is it your intent if two or more products are in the same category? Should each link to the same Category page?

Well, I'll be back shortly with a way to have the Latest Product links point to the respective category page.

Link to comment
Share on other sites

You can create a Code Snippet for this, but for a quick experiment, do this:

In /classes/catalogue.class.php, near line 1281 (for CC620), find:

foreach ($GLOBALS['hooks']->load('class.cubecart.product_price') as $hook) include $hook;

On the blank line below it, add:

$product_data['cat_url'] = $GLOBALS['seo']->buildURL('cat', $product_data['cat_id']);

We are here, in the function to get product prices, because only one product is processed at a time. (Other places may not have a convenient hook, or could process either a single product or a group of products - which would complicate the solution.

What has happened is that we now have a new element to product details - the actual URL that points to the product's main category.

In your template(s), where you see <a href="{$product.url}">, you can use <a href="{$product.cat_url}">.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...