# Add new article in current basket

**URL:** <https://forum.oxid-esales.com/t/add-new-article-in-current-basket/54717>\
**Category:** English forums\
**Tags:** dev-talk\
**Created:** [January 5, 2012, 1:31pm UTC](https://forum.oxid-esales.com/t/add-new-article-in-current-basket/54717 "2012-01-05T13:31:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardikbadani](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/h/898d66/32.png) [@hardikbadani](https://forum.oxid-esales.com/u/hardikbadani)\
**Post date:** [January 5, 2012, 1:31pm UTC](https://forum.oxid-esales.com/t/add-new-article-in-current-basket/54717/1 "2012-01-05T13:31:04Z")

</div>

Hi All,

I have dynamically created one product and once it will create after that i am adding directly that product in current basket using addToBasket function of oxbasket.

But when i check the total price of basket contents, it will not display me total price including my newly created product price, while after this process if i will refresh page it will show my product in basket.

is there any way that i can add my newly created product directly in basket session, i think because of this old session i am not getting my total price.

Please help if anyone knows it.

---

<div class="post-metadata">

**Author:** ![hardikbadani](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/h/898d66/32.png) [@hardikbadani](https://forum.oxid-esales.com/u/hardikbadani)\
**Post date:** [January 7, 2012, 3:04pm UTC](https://forum.oxid-esales.com/t/add-new-article-in-current-basket/54717/2 "2012-01-07T15:04:02Z")

</div>

No one here.  
Please help in this issue if anyone knows.

---

<div class="post-metadata">

**Author:** ![marco.steinhaeuser](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/marco.steinhaeuser/32/1832_2.png) [@marco.steinhaeuser](https://forum.oxid-esales.com/u/marco.steinhaeuser)\
**Post date:** [January 8, 2012, 10:01pm UTC](https://forum.oxid-esales.com/t/add-new-article-in-current-basket/54717/3 "2012-01-08T22:01:50Z")

</div>

Hi,

probably, you have to hand over the old session as well with your new product item… Just guessing…

Regards

---

<div class="post-metadata">

**Author:** ![jkrug](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/jkrug/32/708_2.png) [@jkrug](https://forum.oxid-esales.com/u/jkrug)\
**Post date:** [January 8, 2012, 11:35pm UTC](https://forum.oxid-esales.com/t/add-new-article-in-current-basket/54717/4 "2012-01-08T23:35:59Z")

</div>

Hi,

you had to add the product before loading the basket for the view.

Regards

---

<div class="post-metadata">

**Author:** ![hardikbadani](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/h/898d66/32.png) [@hardikbadani](https://forum.oxid-esales.com/u/hardikbadani)\
**Post date:** [January 9, 2012, 11:23am UTC](https://forum.oxid-esales.com/t/add-new-article-in-current-basket/54717/5 "2012-01-09T11:23:13Z")

</div>

Thanks for the reply Marco and jkrug  
@jkrug

In my case, at some condition i am creating product using ajax and in same ajax call i am adding that product in the basket and at last in the ajax call i am applying voucher code with discount of total basket value (already added product price + newly added product price),  
But it gives me error of voucher discount is more than basket value although i have set basket value as same as voucher value by adding dynamic product.

Can you help me here ?

---

<div class="post-metadata">

**Author:** ![system](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/system/32/4245_2.png) [@system](https://forum.oxid-esales.com/u/system)\
**Post date:** [July 13, 2026, 7:39pm UTC](https://forum.oxid-esales.com/t/add-new-article-in-current-basket/54717/6 "2026-07-13T19:39:02Z")

</div>


