Jump to content

futzy

Members
  • Content count

    11
  • Joined

  • Last visited

  1. futzy

    Moneta, eMoneta, Mobitel

    Sem sprogramiral (z malo muke in veliko supporta s strani Mobitela) in deluje ze nekaj casa brez problema...
  2. futzy

    Moneta, eMoneta, Mobitel

    Tudi jaz zelo verjamem v free code comunity... ampak s to Moneto sem imel pa toliko tezav in stroskov (realnih - 100 klicev na mobitel, itd) tako da bi vseeno kaksno nadomestilo bilo na mestu... kaksnih 5k sit manj od ponudbe od firm :rolleyes: Pa to predvsem zaradi tega, ker ta modul gre sigurno v komercialne namene naprej saj ga posameznik za domaco uporabo res ne rabi :-"
  3. futzy

    Moneta, eMoneta, Mobitel

    Sem sam sprogramiral.. Ene 14 dni + testiranje z Mobitelom pa je slo B) Je treba par dodatnih funkcij in malo nastavljati postnino, ker Mobitel drugace zaracunava... So mi ponujale firme za 40k SIT... :angry: Tako da ce rabis se lahko zmenimo - za kaksno malo kompenzacijo :-" LP
  4. futzy

    Shipping as article

    Hi, Can anyone tell me how to add the shipping cost to this XML output code? Following code is the output which includes 2 articles from order: <PRODUCT> <PageDescription>Test product</PageDescription> <Price>0.83</Price> <PriceNoTax>0.8333</PriceNoTax> <TaxRate>20</TaxRate> <Quantity>1</Quantity> <PriceSum>0.83</PriceSum> <PriceSumNoTax>0.67</PriceSumNoTax> <PriceTax>0.16</PriceTax> <Unit>kos</Unit> <ArticleNumber>490</ArticleNumber> </PRODUCT><PRODUCT> <PageDescription>10337 BATTERY SONY R6/3 (NS) "AA" 1,5V</PageDescription> <Price>208.33</Price> <PriceNoTax>208.3333</PriceNoTax> <TaxRate>20</TaxRate> <Quantity>1</Quantity> <PriceSum>208.33</PriceSum> <PriceSumNoTax>166.67</PriceSumNoTax> <PriceTax>41.66</PriceTax> <Unit>kos</Unit> <ArticleNumber>186</ArticleNumber> </PRODUCT> I would need shipping to be added to this also as a standard article something like: <PRODUCT> <PageDescription>Shipping charge</PageDescription> <Price>120</Price> <PriceNoTax>100</PriceNoTax> <TaxRate>20</TaxRate> <Quantity>1</Quantity> <PriceSum>120</PriceSum> <PriceSumNoTax>100</PriceSumNoTax> <PriceTax>20</PriceTax> <Unit>kos</Unit> <ArticleNumber>500</ArticleNumber> </PRODUCT> The function that creates this code is in /includes/functionc/pay.php: function make_order_line($description, $price, $tax_rate, $quantity, $unit, $article_number){ $price_w_tax = round($price, 2); $price_sum = round($price_w_tax * $quantity, 2); $price_sum_no_tax = round(($price / 100) * (100 - $tax_rate), 2); $price_tax = round($price_sum - $price_sum_no_tax, 2); $price = str_replace(",", ".", $price); $price_w_tax = str_replace(",", ".", $price_w_tax); $tax_rate = str_replace(",", ".", $tax_rate); $quantity = str_replace(",", ".", $quantity); $price_sum = str_replace(",", ".", $price_sum); $price_sum_not_tax = str_replace(",", ".", $price_sum_no_tax); $price_tax = str_replace(",", ".", $price_tax); $xml = "<PRODUCT> <PageDescription>$description</PageDescription> <Price>$price_w_tax</Price> <PriceNoTax>$price</PriceNoTax> <TaxRate>$tax_rate</TaxRate> <Quantity>$quantity</Quantity> <PriceSum>$price_sum</PriceSum> <PriceSumNoTax>$price_sum_no_tax</PriceSumNoTax> <PriceTax>$price_tax</PriceTax> <Unit>$unit</Unit> <ArticleNumber>$article_number</ArticleNumber> </PRODUCT>"; return $xml; } I know it's a lot of code displayed but can anyone help me? Thanks!
  5. futzy

    Shipping as article

    Hi, Can anyone tell me how to add the shipping cost to this XML output code? Following code is the output which includes 2 articles from order: <PRODUCT> <PageDescription>Test product</PageDescription> <Price>0.83</Price> <PriceNoTax>0.8333</PriceNoTax> <TaxRate>20</TaxRate> <Quantity>1</Quantity> <PriceSum>0.83</PriceSum> <PriceSumNoTax>0.67</PriceSumNoTax> <PriceTax>0.16</PriceTax> <Unit>kos</Unit> <ArticleNumber>490</ArticleNumber> </PRODUCT><PRODUCT> <PageDescription>10337 BATTERY SONY R6/3 (NS) "AA" 1,5V</PageDescription> <Price>208.33</Price> <PriceNoTax>208.3333</PriceNoTax> <TaxRate>20</TaxRate> <Quantity>1</Quantity> <PriceSum>208.33</PriceSum> <PriceSumNoTax>166.67</PriceSumNoTax> <PriceTax>41.66</PriceTax> <Unit>kos</Unit> <ArticleNumber>186</ArticleNumber> </PRODUCT> I would need shipping to be added to this also as a standard article something like: <PRODUCT> <PageDescription>Shipping charge</PageDescription> <Price>120</Price> <PriceNoTax>100</PriceNoTax> <TaxRate>20</TaxRate> <Quantity>1</Quantity> <PriceSum>120</PriceSum> <PriceSumNoTax>100</PriceSumNoTax> <PriceTax>20</PriceTax> <Unit>kos</Unit> <ArticleNumber>500</ArticleNumber> </PRODUCT> The function that creates this code is in /includes/functionc/pay.php: function make_order_line($description, $price, $tax_rate, $quantity, $unit, $article_number){ $price_w_tax = round($price, 2); $price_sum = round($price_w_tax * $quantity, 2); $price_sum_no_tax = round(($price / 100) * (100 - $tax_rate), 2); $price_tax = round($price_sum - $price_sum_no_tax, 2); $price = str_replace(",", ".", $price); $price_w_tax = str_replace(",", ".", $price_w_tax); $tax_rate = str_replace(",", ".", $tax_rate); $quantity = str_replace(",", ".", $quantity); $price_sum = str_replace(",", ".", $price_sum); $price_sum_not_tax = str_replace(",", ".", $price_sum_no_tax); $price_tax = str_replace(",", ".", $price_tax); $xml = "<PRODUCT> <PageDescription>$description</PageDescription> <Price>$price_w_tax</Price> <PriceNoTax>$price</PriceNoTax> <TaxRate>$tax_rate</TaxRate> <Quantity>$quantity</Quantity> <PriceSum>$price_sum</PriceSum> <PriceSumNoTax>$price_sum_no_tax</PriceSumNoTax> <PriceTax>$price_tax</PriceTax> <Unit>$unit</Unit> <ArticleNumber>$article_number</ArticleNumber> </PRODUCT>"; return $xml; } I know it's a lot of code displayed but can anyone help me? Thanks!
  6. futzy

    Moneta, eMoneta, Mobitel

    Hi, Anyone willing to share a payment module for Moneta (Mobitel) - that's Slovenian mobile processor... I know that there are many shops in .si that uses this module but could not get the module from anyone. Thanks! Regards, Saso
  7. futzy

    Klik NLB - Slovenija

    Hi, Is there anyone that has succesfully added payment module for Slovenian NLB bank via Klik system? Thanks for any help! Best regards, Saso
×