Post by straightlight » Mon Mar 12, 2012 2:15 am

Better results would be provided if both files were posted as an attachment instead. ;)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by victorj » Mon Mar 12, 2012 5:50 am

filippota wrote:straightlight. thanks for all that help! no success and i am guessing theres is something going on with the files permissions in vqcache folder. i cannot change files permissions in that folder to 777. all files in that vqache folder are chmod 644.
reset owner of files in your direct admin filemanager fileowner is now apache
now you can cmod them to 777.

consider going to a good hosting using cpanel it makes a difference and certainly makes your day better

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by sayx » Mon Mar 12, 2012 12:43 pm

straightlight attached are the 3 files

\catalog\view\theme\default\template\product\product.tpl
\catalog\language\english\product\product.php
\catalog\controller\product\product.php

I would love to understand what is done, I have a few other things I'd like to add in the future and once I know this then maybe I could do it myself later. Last time I did any programing was on a commodore 64

sayx

Newbie

Posts

Joined
Thu Aug 25, 2011 9:02 pm

Post by straightlight » Mon Mar 12, 2012 7:47 pm

Now that your files are attached, what is the problem with your previous code and what do you need ?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by sayx » Mon Mar 12, 2012 8:39 pm

I'm not getting the weight in the product page. I have a weight based shipping modual and I would like to show my customers the weight of each item.

What would be even better is is it would show the shipping cost of each item.

Weigth: 8kg
Shipping cost: 6.00€ (0.75€ x weight)

The thing is I have a minumen shipping charge so when a customer is under 80kg its 60€ and anything over 80kg is weight * 0.75. Like i said it would be nice but not a must have for me.

I have seen the addon moduals that would take care of this and may use that some day.

Sayx

Newbie

Posts

Joined
Thu Aug 25, 2011 9:02 pm

Post by straightlight » Mon Mar 12, 2012 8:53 pm

sayx wrote:I'm not getting the weight in the product page. I have a weight based shipping modual and I would like to show my customers the weight of each item.

What would be even better is is it would show the shipping cost of each item.

Weigth: 8kg
Shipping cost: 6.00€ (0.75€ x weight)

The thing is I have a minumen shipping charge so when a customer is under 80kg its 60€ and anything over 80kg is weight * 0.75. Like i said it would be nice but not a must have for me.

I have seen the addon moduals that would take care of this and may use that some day.

Sayx
Done: http://forum.opencart.com/viewtopic.php ... 26#p240126

With your request, you can use the additional:

Code: Select all

<?php echo $product['shipping']; ?>
<?php echo $shipping; ?>
in the product.tpl file on each appropriate places by re-downloading the XML file.

Take note that the returned shipping value may differ from the one you're using with an API service. If you rely on an API service to gather the shipping price by the weight, do NOT use the shipping additions but rather remain with the API. The manufactured response is the most accurate one.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by labeshops » Tue Mar 20, 2012 11:15 pm

How can I only display the dimensions if they are > 0?? I really don't use dimensions for things like clothing and right now it displays as "Size (approx): 0.00 L x 0.00 H x 0.00 W/D Inches" for clothing.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by straightlight » Tue Mar 20, 2012 11:32 pm

Try this.

Attachments

Tested on v1.5.2.1.


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by labeshops » Wed Mar 21, 2012 2:29 am

Thanks! That solved it :)

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by ikhlief » Wed Mar 21, 2012 3:46 pm

Dear stairghtlight, I used your new xml and works fine, but I need a little modification regarding format, take a look at this page:
http://www.jecjordan.com/index.php?rout ... uct_id=364

Can I make weight and dimension title in red and values in gray as other info instead in showing them all in gray?
From where I can translate units in Arabic?

Many thanks

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Wed Mar 21, 2012 6:52 pm

Dear stairghtlight
No need to re-write the username, simply copy and paste it or quote it.
Can I make weight and dimension title in red and values in gray as other info instead in showing them all in gray?
Of course.

Solution 1:

In the XML file, look for language/english block and edit each lines between the <add> and </add> to specify the appropriate colors. :)

In Arabic case, it should also be language/arabic so simply add this entire block below the english block from <file ... to </file>.

Solution 2:

No matter which language from the XML file, you could edit the colors from templates which is a far easier solution since your request is about colors and not text specifically.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Wed Mar 21, 2012 7:08 pm

Thanks for reply, but what is the code to be added?

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by ikhlief » Wed Mar 21, 2012 7:11 pm

Thanks I solved it my self :)

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by ikhlief » Wed Mar 21, 2012 7:18 pm

From where I can translate units in Arabic?

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Wed Mar 21, 2012 10:41 pm

From the XML file where you see the English block, just create another block below the Arabic language. ;)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by labeshops » Sun Apr 01, 2012 10:45 pm

Is it possible to add this info to the specifications tab as well (or instead)?

I cannot seem to get it to work since the tab only displays if there are attributes, so no way I've found to make the tab always appear and with dimensions and weight even if there are no other attributes given :P

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by straightlight » Sun Apr 01, 2012 10:53 pm

Perhaps you could describe how you achieved to only show this when they are attributes involved while I could make it work with or without it ? In both cases, it shouldn't really matter unless you're using a custom template that contains additional conditions where specific authors of specific contributions requires so.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by labeshops » Sun Apr 01, 2012 11:48 pm

I haven't done it in any way yet.

I use the default template.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by straightlight » Sun Apr 01, 2012 11:51 pm

My instructions should only affect the product info and the tabs. A good place would be to add the new tab block right beside the related products.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by labeshops » Mon Apr 02, 2012 12:46 am

I already renamed the specification tab to "Product Details" and eventually all my products will have details, but I have to go back thru and add them to the 2000k products I've already done. Example http://www.jewelrygemshop.com/pendant-c ... dant-TP922

I would just like to add at top of this box the same info your mod pulls like below as that info to me are some of the product details and I've already had people miss them under availability.

Size x L x W x D Inches
Shipping Weight: x lbs

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA
Who is online

Users browsing this forum: No registered users and 174 guests