Перейти к содержимому


Фотография
- - - - -

Pre made product packages and auto populate user information

store functionality

Лучший Ответ SmetDenis , 20 March 2014 - 12:13

Hello,
 
First of all, you need two different types of item
- Complex product, which include other related items
- Simple product, which will be included into complex.
 
Unzip elements here - media\zoo\applications\jbuniversal\elements\
(replace jbpriceadvance)
 
After that you can find new element
0uc_200x0.png
 
Add it to complex type.
 
So, add some simple item in complex, like this
2ys_200x0.png
 
Go to full page of complex product and find new link
b4p_200x0.png
 
After click you will redirect to cart's items page with related
y9m_200x0.png
 
 
Here you can find new link "Add complex"
media\zoo\applications\jbuniversal\elements\jbpriceadvance\tmpl\tmpl_default.php
 
 
Of course this solution doesn't completely solve your issue, but I think it would be a good start. Перейти к сообщению


  • Закрытая тема Тема закрыта
Сообщений в теме: 12

#1 IDMax

IDMax

Отправлено 12 March 2014 - 11:50

Hi guys, nice to be here again in your support forum.
 
Today I have a couple of questions, and we attach a couple of PDF to make them more clear.
 
1. How can I create quick shopping list products or packages? like the “Example 1” pdf file. In this case we need to put some products on the pre-made selection, and give the customer the ability to select or increase the sizes or number of products in the advance cart pop up, previous to the final cart check out.
 
2. How can I auto populate user information in the final check out form? like “Example 2” in the pdf file. In this case not necessary the looks, but the user shipping and billing address pre-configured for the user.
 
THANK YOU VERY MUCH FOR YOUR HELP !!!
 
 
Прикрепленный файл  Example 2.pdf   299.75К   40 Количество загрузок:
 
Прикрепленный файл  Example 1.pdf   272.6К   70 Количество загрузок:
  • 1

#2 SmetDenis

SmetDenis

Отправлено 12 March 2014 - 15:43

Hello,

NIce to meet you too.

 

1.

As I understand you, you need special complex type of item, which will be include some other items. And while, when consumer add complex good in cart, he see all related items. I understand you correctly?

 

2.

Perhaps, You can fill some fields by JavaScript.
For example, when user create his first order, shipping information saves as user parameters via Zoo event.

For future orders this can use for fields.

 

I try to make code, but only for example

\media\zoo\applications\jbuniversal\framework\events\jbevent.basket.php

/**
     * On before order save
     * @param AppEvent $event
     */
    public static function beforeSave($event)
    {
        $app    = self::app();
        $params = $event->getParameters();
        $item   = $params['item'];
        $value = $item->getElement('<ELEMENT_ID')->get('value');
        $app->jbuser->setParam('shipping_field', $value);
    }

 

And for order form template

$app = App::getInstance('zoo');
$value = $app->jbuser->getParam('shipping_field');
?>
<script>
jQuery('.field_selectror').val('<?=$value;?>')
</script>
<?

  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#3 IDMax

IDMax

Отправлено 12 March 2014 - 16:29

Number 1:   You understood correctly.

 

Number 2:    Let us try your demo code and we will give you feed back.

In case it does not work, would you be able to do it for an additional fee. If so, How much would it be?


  • 0

#4 IDMax

IDMax

Отправлено 19 March 2014 - 07:09

Hello again,

Regarding the same topics by number

 

Number 1:  What we need is to make a pre shopping cart list (Only around 4 modules pre made list with 5-10 items on each, not to be in the store, but able to call items from it).

We think (unless you have a better idea) that the best way to do it is to build a pre made button (jb price advanced) and place it in a module independent from the store items front page.

 

In order to do this we want to call on the pop up window the pre made list from the button code.

Our problem is we do not know how to call various items, sku and count on each to the pop up window properly on the sintaxis of your architecture.

 

We made a draft for you to help us if you can with the sintaxis a little bit:

 

CURRENT BUTTON:

<a class="jsAddToCartModal jbzoo-button green" title="Add to Cart" href="#add-to-cart-modal" rel="nofollow">Add to Cart</a>

 

DRAFT EXAMPLE OF WHAT WE THINK WE NEED:

<a class="jsAddToCartModal jbzoo-button green" title="make a request" href="(item_id=127, item_id=128, item_id=129) add-to-cart-modal" rel="">make a request</a>

 

Number 2:  For this topic we solve the problem this way... We add a component call easy profiler pro, then we make it the main user handler in the CMS, and because it manage the user call to item with labels, we just add the proper label as default on the form core elements to edit, and it works perfectly. Either way thank you very much for the effort of the pre made code in java for the PHP file, it will help us a lot for future exploration.

 

 

Thank you very much guys for your support, and I hope we are not bothering you to much. As we state before you are the best option for us in the joomla store framework demand and supply. Congratulations !!!!

 

Tony Caballero

IDMAX


  • 0

#5 SmetDenis

SmetDenis

Отправлено 19 March 2014 - 11:52

Hi, IDMax

 

Now I haven't turnkey solution. I will see, how to do it.

I need about two days and after that I answer here.

 

Can you tell me please, how you combine some items for one complex product in ypur website?

Is it standart zoo related items element ?

 

Best regards, SmetDenis.


  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#6 IDMax

IDMax

Отправлено 19 March 2014 - 15:31

We haven't do it yet. We do not want standard zoo related items.

We are looking to not to concentrate on the product layout, but in the cart instead for the pre made items list in one single button.

 

They way we want to do it is leave a main JB Zoo Store, and build independent modules with an add to cart button for each pre made list.

We need the add to cart button to deploy the pop up window with various items description and count options (as regular), the only change is instead of just one product, we want to be able to place from 5-10 in the same pop up window list . This way the customer will only select the amount of items he want from each item and then place the order with the regular add to cart button from the pop up window.

 

I will prepare a PDF to explain this better.

 

Thank you for your help

 

Tony


  • 0

#7 SmetDenis

SmetDenis

Отправлено 20 March 2014 - 10:23

Hi, 

 

Okey, today I try to make some solution, and I will show it here.
But it will be very simple, because such feature is not included into JBZoo App.

 

Thanks.


  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#8 SmetDenis

SmetDenis

Отправлено 20 March 2014 - 12:13   Лучший Ответ

Hello,
 
First of all, you need two different types of item
- Complex product, which include other related items
- Simple product, which will be included into complex.
 
Unzip elements here - media\zoo\applications\jbuniversal\elements\
(replace jbpriceadvance)
 
After that you can find new element
0uc_200x0.png
 
Add it to complex type.
 
So, add some simple item in complex, like this
2ys_200x0.png
 
Go to full page of complex product and find new link
b4p_200x0.png
 
After click you will redirect to cart's items page with related
y9m_200x0.png
 
 
Here you can find new link "Add complex"
media\zoo\applications\jbuniversal\elements\jbpriceadvance\tmpl\tmpl_default.php
 
 
Of course this solution doesn't completely solve your issue, but I think it would be a good start.

Прикрепленные файлы

  • Прикрепленный файл  elements.zip   32.26К   22 Количество загрузок:

  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#9 IDMax

IDMax

Отправлено 26 March 2014 - 04:49

Thank you very much guys,

 

Your code work perfectly, and it solve our issue for a complex item template, we have a final question:

 

How can we make the add complex button disapear in the items without related products?

 

 

Thank you very much for your assistance.


  • 0

#10 SmetDenis

SmetDenis

Отправлено 27 March 2014 - 06:38

Hello,

 

How can we make the add complex button disapear in the items without related products?
 

And how JBZoo will know, what items must add to the cart ?
I mean, where will store relationships between complex and simple items ?

 

Bets regards, Denis.


  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.





Click to return to top of page in style!