Make Shippable Goods Default

  • Posts: 21
  • Thank you received: 0
11 years 1 week ago #169787

-- url of the page with the problem -- : www.max-wear.com
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 2.5.24
-- PHP version -- : 5.4

How do you make Shippable Goods the default? I know it is a drop down which reveals the weight options but my client does not have any virtual products


Thank You,

Teverz

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
11 years 1 week ago #169792

Hi,

The best will be to override the backend view "product | form" in order to remove the drop down and display by default the weight/size fields.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
11 years 1 week ago #169873

On challenge I found the form but what do I need to change in the form to allow the weight size to display by default?


Thank You,

Teverz

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 week ago #169880

Hi,

You have to edit the view "product / common" and replace:

if(!empty($this->element->product_weight) && hikashop_toFloat($this->element->product_weight) != 0.0){$product_type='shippable';}else{$product_type='virtual';}
By:
$product_type='shippable';

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0
11 years 1 week ago #170041

I changed it to this and it works great ... Thank you

$product_type='shippable';
echo JText::_( 'WIZARD_REAL' );


I found it easier to do this an editor and then upload the file and replace it.


Thank You,

Teverz
Last edit: 11 years 1 week ago by Teverz.

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
10 years 9 months ago #181525

HikaShop Business: 2.3.4
Joomla! version 2.5.19


Hi can someone help me find which file to change, I found the common.php file but can't locate this code for the life of me. I've searched by keywords, source code...etc using Dreameaver. I'm simply tying to Make Shippable Default, Weight, and Volumes default. Dont want to have to change all this product manually.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #181613

Hello,
1.

Dont want to have to change all this product manually

Note that you can eventually use mass actions to do that : www.hikashop.com/support/support/documen...massaction-form.html

2.
Also, you're probably editing the wrong file, you'll have to edit the "common" file of the "product" view of your back-end template via "Hikashop->Display->Views"

The following user(s) said Thank You: Zerry02

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
10 years 9 months ago #181637

Thanks for your time. I tried to create a mass action , however when I try to add triggers or actions...etc, there's nothing to select in the dropdowns. I there another step I'm missing? I'm looking at the tutorial but nothing populates the dropdowns. Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 9 months ago #181646

What do you see exactly on the mass action screen ?
Could you do some screenshots please ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.104 seconds
Powered by Kunena Forum