attributes set

12.02.2013 10:49
#1
loziofester
Joomshopping forum user no avatar
Name: pako
07.02.2013
Posts: 15
Quote
attributes set

first of all congratulations for this fantastic sw. I'm testing locally with EasyPHP and joomla 2.5-my intention would be to do a shop to sell contact lenses. I've already done most of the work and I think everything is working fine. my requirement is to create, for the same product, 2 sets of attributes. In practice I had to choose a serious attributes for the right eye and the same number for the left eye. It's possible?


Joomla: 2.5
JoomShopping: 3.13
PHP: 12.01
 
12.02.2013 11:29
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16481
Quote
Aw: attributes set

use 2 attribute

 
12.02.2013 13:03
#3
loziofester
Joomshopping forum user no avatar
Name: pako
07.02.2013
Posts: 15
Quote
Aw: attributes set

webdesigner - 12.02.2013 11:29
use 2 attribute

ehmmm how? I'm sorry I am very inexperienced-use joomla for about 2 months

 
12.02.2013 13:20
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16481
Quote
Aw: attributes set

option / attribute

create 2 attribute

 
12.02.2013 14:11
#5
loziofester
Joomshopping forum user no avatar
Name: pako
07.02.2013
Posts: 15
Quote
Aw: attributes set

webdesigner - 12.02.2013 13:20
option / attribute

create 2 attribute

maybe I was wrong to describe my problem. I have the following attributes for a product: RB - SF-cyl - AX-DM-all filled with values​​-these five attributes I select them to sell contact lenses. all 5 attributes are related to the power of one single eye-How do I choose to also power the other eye?
these 2 sets of attributes, 5 for an eye and 5 for the other eye I would like them to appear in the article that is being choosing-The customer must be able to choose for the same item the gradation of the two eyes so as to receive two packages.

 
12.02.2013 14:18
#6
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16481
Quote
Aw: attributes set

Now more clearly.

only
attribut1 left
attribut1 right

attribut2 left
attribut2 right
...


Letzte Änderung: 12.02.2013 14:18
 
12.02.2013 14:24
#7
loziofester
Joomshopping forum user no avatar
Name: pako
07.02.2013
Posts: 15
Quote
Aw: attributes set

webdesigner - 12.02.2013 14:18
Now more clearly.

only
attribut1 left
attribut1 right

attribut2 left
attribut2 right
...

I had thought this way, but if you fill in all the various fields then we give him a way to automatically calculate that the client needs two packs?
sorry if link an example, but I would like to do something like that-
I forgot something very important .... this forum is really super and your availability

http://www.opticalinstitute.com/component/page,shop.product_details/flypage,shop.flypage/product_id,746/category_id,34/manufacturer_id,1/option,com_virtuemart/Itemid,1/lang,en/

 
12.02.2013 16:33
#8
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16481
Quote
Aw: attributes set

Just a different style.

create attribute
Quantity left
Quantity right
...
Power left
Power right

 
12.02.2013 17:01
#9
loziofester
Joomshopping forum user no avatar
Name: pako
07.02.2013
Posts: 15
Quote
Aw: attributes set

webdesigner - 12.02.2013 16:33
Just a different style.

create attribute
Quantity left
Quantity right
...
Power left
Power right

ok this is for me the best solution. Thank you very much-
Which file I have to change because the pages I can change the layout and put a box for each set of attributes?

 
12.02.2013 18:27
#10
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16481
Quote
Aw: attributes set

components\com_jshopping\templates\default\product\product_default.php

....

?php if (count($this->attributes)){?>
<div class="jshop_prod_attributes">
<table class="jshop">
<?php foreach($this->attributes as $attribut){?>
<tr>
<td class="attributes_title">
<span class="attributes_name"><?php print $attribut->attr_name?>:</span><span class="attributes_description"><?php print $attribut->attr_description;?></span>
</td>
<td>
<span id='block_attr_sel_<?php print $attribut->attr_id?>'>
<?php print $attribut->selects?>
</span>
</td>
</tr>
<?php }?>
</table>
</div>
<?php }?>

 
16.02.2013 19:47
#11
loziofester
Joomshopping forum user no avatar
Name: pako
07.02.2013
Posts: 15
Quote
Aw: attributes set



?php if (count($this->attributes)){?>
<div class="jshop_prod_attributes">
<table class="jshop">
<?php foreach($this->attributes as $attribut){?>
<tr>
<td class="attributes_title">
<span class="attributes_name"><?php print $attribut->attr_name?>:</span><span class="attributes_description"><?php print $attribut->attr_description;?></span>
</td>
<td>
<span id='block_attr_sel_<?php print $attribut->attr_id?>'>
<?php print $attribut->selects?>
</span>
</td>
</tr>
<?php }?>
</table>
</div>
<?php }?>


Hello and first of all I must thank you for your time.
I tried to follow your direction and after various tests - testing and retesting that's all I could do. I realized graphically the two sets of attributes, however, I have a problem to pass these attributes separately when ordering. In addition, another requirement is to then added amount in one when ordering

these are the changes I've made:
<?php if ($this->product->product_url!=""){?>
<div class="prod_url">
<a target="_blank" href="<?php print $this->product->product_url;?>"><?php print _JSHOP_READ_MORE?></a>
</div>
<?php }?> <?php if ($this->config->product_show_manufacturer && $this->product->manufacturer_info->name!=""){?>
<div class="manufacturer_name">
<?php print _JSHOP_MANUFACTURER?>: <span><?php print $this->product->manufacturer_info->name?></span>
</div>
<?php }?>

<?php if (count($this->attributes)){?>
<div class="jshop_prod_attributes">
<table width="443" border="0" class="jshop">
<tr>
<td width="213" colspan="2" bgcolor="#CCCCCC" class="attributes_title">Occhio Destro </td>
<td width="218" colspan="2" bgcolor="#CCCCCC" class="attributes_title">Occhio Sinistro </td>
</tr>
<?php foreach($this->attributes as $attribut){?>
<tr>
<td width="105" class="attributes_title"><span class="attributes_name"><?php print $attribut->attr_name?>:</span><span class="attributes_description"><?php print $attribut->attr_description;?></span>

<td width="106" class="attributes_title"><?php print $attribut->selects?>
<td width="108" class="attributes_title"><span class="attributes_name"><?php print $attribut->attr_name?>:</span><span class="attributes_description"><?php print $attribut->attr_description;?></span>
<td width="108" class="attributes_title"><?php print $attribut->selects?> </tr>
<?php }?>
</table>
</div>
<?php }?>

this is the link of my test shop: http://www.centroculus.it/jupgrade/index.php?option=com_jshopping&controller=product&task=view&category_id=1&product_id=10&Itemid=103&lang=it

 
16.02.2013 20:30
#12
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16481
Quote
Aw: attributes set

Create 6 attribute (Not 3)

 
16.02.2013 20:45
#13
loziofester
Joomshopping forum user no avatar
Name: pako
07.02.2013
Posts: 15
Quote
Aw: attributes set

webdesigner - 16.02.2013 20:30
Create 6 attribute (Not 3)

I followed your advice but I could not separate the attributes (1-2-3 right eye) attributes (4.5-6 left eye). I have created 2 sets of attributes (3 +3) but how do I separate in a graphical way the 2 sets of attributes? should not be put on the list but must be separated. 3 to the right and 3 to the left.

 
16.02.2013 21:01
#14
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16481
Quote
Aw: attributes set

Chane code

<table class="jshop">
<?php foreach($this->attributes as $attribut){?>
<tr>
<td class="attributes_title">
<span class="attributes_name"><?php print $attribut->attr_name?>:</span><span class="attributes_description"><?php print $attribut->attr_description;?></span>
</td>
<td>
<span id='block_attr_sel_<?php print $attribut->attr_id?>'>
<?php print $attribut->selects?>
</span>
</td>
</tr>
<?php }?>
</table>

To (example)

<table class="jshop">
<?php $cc=0; foreach($this->attributes as $attribut){ $cc=!$cc;?>
<?php if ($cc){?><tr><?php }?>
<td class="attributes_title">
<span class="attributes_name"><?php print $attribut->attr_name?>:</span><span class="attributes_description"><?php print $attribut->attr_description;?></span>
</td>
<td>
<span id='block_attr_sel_<?php print $attribut->attr_id?>'>
<?php print $attribut->selects?>
</span>
</td>
<?php if ($cc){?></tr><?php }?>
<?php }?>
</table>

OR use div (example)

<?php foreach($this->attributes as $attribut){?>
<div style="width:50%;float:left">
<table class="jshop">
<tr>
<td class="attributes_title">
<span class="attributes_name"><?php print $attribut->attr_name?>:</span><span class="attributes_description"><?php print $attribut->attr_description;?></span>
</td>
<td>
<span id='block_attr_sel_<?php print $attribut->attr_id?>'>
<?php print $attribut->selects?>
</span>
</td>
</table>
</div>
<?php }?>
<div style="clear:both">


Letzte Änderung: 16.02.2013 21:04
 
17.02.2013 00:38
#15
loziofester
Joomshopping forum user no avatar
Name: pako
07.02.2013
Posts: 15
Quote
Aw: attributes set

webdesigner - 16.02.2013 21:01
Chane code
...........
<span id='block_attr_sel_<?php print $attribut->attr_id?>'>
<?php print $attribut->selects?>
</span>
</td>
</table>
</div>
<?php }?>
<div style="clear:both">


Unfortunately, even though I made repeated attempts have not been able to do as you said.
You would be so kind as to give me the change? I just can not.

<?php $product = $this->product?>
<?php include(dirname(__FILE__)."/load.js.php");?>
<div class="jshop productfull">
<form name="product" method="post" action="<?php print $this->action?>" enctype="multipart/form-data" autocomplete="off">

<h1><?php print $this->product->name?><?php if ($this->config->show_product_code){?> <span class="jshop_code_prod">(<?php print _JSHOP_EAN?>: <span id="product_code"><?php print $this->product->getEan();?></span>)</span><?php }?></h1>
<?php print $this->_tmp_product_html_start;?>
<?php if ($this->config->display_button_print) print printContent();?>

<?php include(dirname(__FILE__)."/ratingandhits.php");?>

<table class="jshop">
<tr>
<td class="image_middle">
<?php print $this->_tmp_product_html_before_image;?>
<?php if ($product->label_id){?>
<div class="product_label">
<?php if ($product->_label_image){?>
<img src="<?php print $product->_label_image?>" alt="<?php print htmlspecialchars($product->_label_name)?>" />
<?php }else{?>
<span class="label_name"><?php print $product->_label_name;?></span>
<?php }?>
</div>
<?php }?>
<?php if (count($this->videos)){?>
<?php foreach($this->videos as $k=>$video){?>
<?php if ($video->video_code){ ?>
<div style="display:none" class="video_full" id="hide_video_<?php print $k?>"><?php echo $video->video_code?></div>
<?php } else { ?>
<a style="display:none" class="video_full" id="hide_video_<?php print $k?>" href=""></a>
<?php } ?>
<?php } ?>
<?php }?>

<span id='list_product_image_middle'>
<?php if(!count($this->images)){?>
<img id = "main_image" src = "<?php print $this->image_product_path?>/<?php print $this->noimage?>" alt = "<?php print htmlspecialchars($this->product->name)?>" />
<?php }?>
<?php foreach($this->images as $k=>$image){?>
<a class="lightbox" id="main_image_full_<?php print $image->image_id?>" href="<?php print $this->image_product_path?>/<?php print $image->image_full;?>" <?php if ($k!=0){?>style="display:none"<?php }?>>
<img id = "main_image_<?php print $image->image_id?>" src = "<?php print $this->image_product_path?>/<?php print $image->image_name;?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" />
<div class="text_zoom">
<img src="<?php print $this->path_to_image?>search.png" alt="zoom" /> <?php print _JSHOP_ZOOM_IMAGE?>
</div>
</a>
<?php }?>
</span>
<?php print $this->_tmp_product_html_after_image;?>

<?php if ($this->config->product_show_manufacturer_logo && $this->product->manufacturer_info->manufacturer_logo!=""){?>
<div class="manufacturer_logo">
<a href="<?php print SEFLink('index.php?option=com_jshopping&controller=manufacturer&task=view&manufacturer_id='.$this->product->product_manufacturer_id, 2);?>">
<img src="<?php print $this->config->image_manufs_live_path."/".$this->product->manufacturer_info->manufacturer_logo?>" alt="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" title="<?php print htmlspecialchars($this->product->manufacturer_info->name);?>" border="0" />
</a>
</div>
<?php }?>
</td>
<td class="jshop_img_description">
<?php print $this->_tmp_product_html_before_image_thumb;?>
<span id='list_product_image_thumb'>
<?php if ( (count($this->images)>1) || (count($this->videos) && count($this->images)) ) {?>
<?php foreach($this->images as $k=>$image){?>
<img class="jshop_img_thumb" src="<?php print $this->image_product_path?>/<?php print $image->image_thumb?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" onclick="showImage(<?php print $image->image_id?>)" />
<?php }?>
<?php }?>
</span>
<?php print $this->_tmp_product_html_after_image_thumb;?>
<?php if (count($this->videos)){?>
<?php foreach($this->videos as $k=>$video){?>
<?php if ($video->video_code) { ?>
<a href="#" id="video_<?php print $k?>" onclick="showVideoCode(this.id);return false;"><img class="jshop_video_thumb" src="<?php print $this->video_image_preview_path."/"; if ($video->video_preview) print $video->video_preview; else print 'video.gif'?>" alt="video" /></a>
<?php } else { ?>
<a href="<?php print $this->video_product_path?>/<?php print $video->video_name?>" id="video_<?php print $k?>" onclick="showVideo(this.id, '<?php print $this->config->video_product_width;?>', '<?php print $this->config->video_product_height;?>'); return false;"><img class="jshop_video_thumb" src="<?php print $this->video_image_preview_path."/"; if ($video->video_preview) print $video->video_preview; else print 'video.gif'?>" alt="video" /></a>
<?php } ?>
<?php } ?>
<?php }?>
<?php print $this->_tmp_product_html_after_video;?>
</td>
</tr>
</table>

<div class="jshop_prod_description">
<?php print $this->product->description; ?>
</div>

<?php if ($this->product->product_url!=""){?>
<div class="prod_url">
<a target="_blank" href="<?php print $this->product->product_url;?>"><?php print _JSHOP_READ_MORE?></a>
</div>
<?php }?>

<?php if ($this->config->product_show_manufacturer && $this->product->manufacturer_info->name!=""){?>
<div class="manufacturer_name">
<?php print _JSHOP_MANUFACTURER?>: <span><?php print $this->product->manufacturer_info->name?></span>
</div>
<?php }?>

<?php if (count($this->attributes)){?>
<div class="jshop_prod_attributes">
<table class="jshop">
<?php foreach($this->attributes as $attribut){?>
<tr>
<td class="attributes_title">
<span class="attributes_name"><?php print $attribut->attr_name?>:</span><span class="attributes_description"><?php print $attribut->attr_description;?></span>
</td>
<td>
<span id='block_attr_sel_<?php print $attribut->attr_id?>'>
<?php print $attribut->selects?>
</span>
</td>
</tr>
<?php }?>
</table>
</div>
<?php }?>

<?php if (count($this->product->freeattributes)){?>
<div class="prod_free_attribs">
<table class="jshop">
<?php foreach($this->product->freeattributes as $freeattribut){?>
<tr>
<td class="name"><span class="freeattribut_name"><?php print $freeattribut->name;?></span> <?php if ($freeattribut->required){?><span>*</span><?php }?><span class="freeattribut_description"><?php print $freeattribut->description;?></span></td>
<td class="field"><?php print $freeattribut->input_field;?></td>
</tr>
<?php }?>
</table>
<?php if ($this->product->freeattribrequire) {?>
<div class="requiredtext">* <?php print _JSHOP_REQUIRED?></div>
<?php }?>
</div>
<?php }?>

<?php if ($this->product->product_is_add_price){?>
<div class="price_prod_qty_list_head"><?php print _JSHOP_PRICE_FOR_QTY?></div>
<table class="price_prod_qty_list">
<?php foreach($this->product->product_add_prices as $k=>$add_price){?>
<tr>
<td class="qty_from" <?php if ($add_price->product_quantity_finish==0){?>colspan="3"<?php } ?>>
<?php if ($add_price->product_quantity_finish==0) print _JSHOP_FROM?>
<?php print $add_price->product_quantity_start?> <?php print $this->product->product_add_price_unit?>
</td>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_line"> - </td>
<?php } ?>
<?php if ($add_price->product_quantity_finish > 0){?>
<td class="qty_to">
<?php print $add_price->product_quantity_finish?> <?php print $this->product->product_add_price_unit?>
</td>
<?php } ?>
<td class="qty_price">
<span id="pricelist_from_<?php print $add_price->product_quantity_start?>"><?php print formatprice($add_price->price)?><?php print $add_price->ext_price?></span> <span class="per_piece">/ <?php print $this->product->product_add_price_unit?></span>
</td>
</tr>
<?php }?>
</table>
<?php }?>

<?php if ($this->product->product_old_price > 0){?>
<div class="old_price">
<?php print _JSHOP_OLD_PRICE?> <span class="old_price" id="old_price"><?php print formatprice($this->product->product_old_price)?></span>
</div>
<?php }?>

<?php if ($this->product->product_price_default > 0 && $this->config->product_list_show_price_default){?>
<div class="default_price"><?php print _JSHOP_DEFAULT_PRICE?>: <span id="pricedefault"><?php print formatprice($this->product->product_price_default)?></span></div>
<?php }?>

<?php if ($this->product->_display_price){?>
<div class="prod_price">
<?php print _JSHOP_PRICE?>: <span id="block_price"><?php print formatprice($this->product->getPriceCalculate())?><?php print $this->product->_tmp_var_price_ext;?></span>
</div>
<?php }?>
<?php print $this->product->_tmp_var_bottom_price;?>

<?php if ($this->config->show_tax_in_product && $this->product->product_tax > 0){?>
<span class="taxinfo"><?php print productTaxInfo($this->product->product_tax);?></span>
<?php }?>
<?php if ($this->config->show_plus_shipping_in_product){?>
<span class="plusshippinginfo"><?php print sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);?></span>
<?php }?>
<?php if ($this->product->delivery_time != ''){?>
<div class="deliverytime"><?php print _JSHOP_DELIVERY_TIME?>: <?php print $this->product->delivery_time?></div>
<?php }?>
<?php if ($this->config->product_show_weight && $this->product->product_weight > 0){?>
<div class="productweight"><?php print _JSHOP_WEIGHT?>: <span id="block_weight"><?php print formatweight($this->product->getWeight())?></span></div>
<?php }?>

<?php if ($this->product->product_basic_price_show){?>
<div class="prod_base_price"><?php print _JSHOP_BASIC_PRICE?>: <span id="block_basic_price"><?php print formatprice($this->product->product_basic_price_calculate)?></span> / <?php print $this->product->product_basic_price_unit_name;?></div>
<?php }?>

<?php if (is_array($this->product->extra_field)){?>
<div class="extra_fields">
<?php $extra_field_group = "";
foreach($this->product->extra_field as $extra_field){
if ($extra_field_group!=$extra_field['groupname']){
$extra_field_group = $extra_field['groupname'];
?>
<div class='extra_fields_group'><?php print $extra_field_group?></div>
<?php }?>
<div><span class="extra_fields_name"><?php print $extra_field['name'];?></span><?php if ($extra_field['description']) {?> <span class="extra_fields_description"><?php print $extra_field['description'];?></span><?php } ?>: <span class="extra_fields_value"><?php print $extra_field['value'];?></span></div>
<?php }?>
</div>
<?php }?>

<?php if ($this->product->vendor_info){?>
<div class="vendorinfo">
<?php print _JSHOP_VENDOR?>: <?php print $this->product->vendor_info->shop_name?> (<?php print $this->product->vendor_info->l_name." ".$this->product->vendor_info->f_name;?>),
(
<?php if ($this->config->product_show_vendor_detail){?><a href="<?php print $this->product->vendor_info->urlinfo?>"><?php print _JSHOP_ABOUT_VENDOR?></a>,<?php }?>
<a href="<?php print $this->product->vendor_info->urllistproducts?>"><?php print _JSHOP_VIEW_OTHER_VENDOR_PRODUCTS?></a> )
</div>
<?php }?>

<?php if (!$this->config->hide_text_product_not_available){ ?>
<div class = "not_available" id="not_available"><?php print $this->available?></div>
<?php }?>

<?php if ($this->config->product_show_qty_stock){?>
<div class="qty_in_stock"><?php print _JSHOP_QTY_IN_STOCK?>: <span id="product_qty"><?php print sprintQtyInStock($this->product->qty_in_stock);?></span></div>
<?php }?>

<?php print $this->_tmp_product_html_before_buttons;?>
<?php if (!$this->hide_buy){?>
<table class="prod_buttons">
<tr>
<td class="prod_qty">
<?php print _JSHOP_QUANTITY?>:&nbsp;
</td>
<td class="prod_qty_input">
<input type="text" name="quantity" id="quantity" onkeyup="reloadPrices();" class="inputbox" value="<?php print $this->default_count_product?>" /><?php print $this->_tmp_qty_unit;?>
</td>
<td class="buttons">
<input type="submit" class="button" value="<?php print _JSHOP_ADD_TO_CART?>" onclick="jQuery('#to').val('cart');" />
<?php if ($this->enable_wishlist){?>
<input type="submit" class="button" value="<?php print _JSHOP_ADD_TO_WISHLIST?>" onclick="jQuery('#to').val('wishlist');" />
<?php }?>
<?php print $this->_tmp_product_html_buttons;?>
</td>
<td id="jshop_image_loading" style="display:none"></td>
</tr>
</table>
<?php }?>
<?php print $this->_tmp_product_html_after_buttons;?>

<input type="hidden" name="to" id='to' value="cart" />
<input type="hidden" name="product_id" id="product_id" value="<?php print $this->product->product_id?>" />
<input type="hidden" name="category_id" id="category_id" value="<?php print $this->category_id?>" />
</form>

<?php print $this->_tmp_product_html_before_demofiles; ?>
<div id="list_product_demofiles"><?php include(dirname(__FILE__)."/demofiles.php");?></div>
<?php
if ($this->config->product_show_button_back){?>
<div class="button_back">
<input type="button" class="button" value="<?php print _JSHOP_BACK;?>" onclick="<?php print $this->product->button_back_js_click;?>" />
</div>
<?php }?>
<?php
print $this->_tmp_product_html_before_related;
include(dirname(__FILE__)."/related.php");
print $this->_tmp_product_html_before_review;
include(dirname(__FILE__)."/review.php");
?>
<?php print $this->_tmp_product_html_end;?>
</div>

 
Copyrights MAXXmarketing GmbH. All Rights Reserved