<?php
function yab_shop_config($what)
{
  $config = array(
  'tax_inclusive'                 => '1',
  'tax_rate'                      => '19',
  'shipping_costs'                => '7,50',
  'free_shipping'                 => '20,00',
  'currency'                      => 'EUR',
  'payment_method_acc'            => '1',
  'payment_method_pod'            => '1',
  'payment_method_pre'            => '1',
  'payment_method_paypal'         => '1',
  'checkout_section_name'         => 'checkout',
  'shop_section_name'             => 'shop',
  'custom_field_price_name'       => 'Price',
  'custom_field_price'            => 'Custom_1',
  'custom_field_property_1_name'  => 'Size',
  'custom_field_property_2_name'  => 'Color',
  'custom_field_property_3_name'  => 'Variant',
  'admin_mail'                    => 'orders@domain.tld',
  'order_affirmation_mail'        => '0'
  );
 return $config[$what];
}

// if you are using paypal as payment method, make your choices here

function yab_shop_paypal_config($what)
{
  $config = array(
  'paypal_business_mail'              => 'paypal@domain.tld',
  'paypal_prefilled_country'          => 'de',
  'paypal_interface_language'         => 'en',
  'paypal_live_or_sandbox'            => 'sandbox',
  'use_encrypted_paypal_button'       => '1',
  'paypal_certificate_id'             => 'CERTIFICATEID',
  'paypal_certificates_path'          => '/path/to/your/certificates',
  'paypal_public_certificate_name'    => 'paypal_cert.pem',
  'paypal_my_public_certificate_name' => 'my-public-certificate.pem',
  'paypal_my_private_key_name'        => 'my-private-key.pem'
  );
 return $config[$what];
}

function yab_shop_lang($what)
{
  $lang = array(
  'price'                             => 'Price',
  'quantity'                          => 'Quantity',
  'sub_total'                         => 'Subtotal',
  'to_checkout'                       => 'Proceed to Checkout',
  'empty_cart'                        => 'No Items in Cart',
  'add_to_cart'                       => 'Add to Cart',
  'message_added'                     => 'Cart has been updated',
  'table_caption_content'             => 'Content',
  'table_caption_change'              => 'Quantity',
  'table_caption_price'               => 'Price Sum',
  'custom_field_property_1'           => 'Size',
  'custom_field_property_2'           => 'Color',
  'custom_field_property_3'           => 'Variant',
  'checkout_tax_exclusive'            => yab_shop_config('tax_rate').'% Tax exclusive',
  'checkout_tax_inclusive'            => yab_shop_config('tax_rate').'% Tax inclusive',
  'shipping_costs'                    => 'Shipping Costs',
  'grand_total'                       => 'Total',
  'checkout_edit'                     => 'Change Qty',
  'checkout_delete'                   => 'x',
  'checkout_required_field_notice'    => 'Fields marked with red labels are required!',
  'checkout_firstname'                => 'First Name',
  'checkout_surname'                  => 'Last Name',
  'checkout_street'                   => 'Street',
  'checkout_postal'                   => 'ZIP Code',
  'checkout_city'                     => 'City',
  'checkout_phone'                    => 'Phone',
  'checkout_email'                    => 'Email',
  'checkout_message'                  => 'Message',
  'checkout_tou'                      => 'Terms Of Use',
  'checkout_terms_of_use'             => 'I\'ve read the <a href="http://demoshop.yablo.de/tou/terms-of-use" title="Terms of Use">Terms of Use</a>!',
  'checkout_order'                    => 'Purchase/Order',
  'checkout_legend'                   => 'Purchase Form',
  'checkout_payment_acc'              => 'Purchase on Account',
  'checkout_payment_pod'              => 'Purchase on Delivery',
  'checkout_payment_pre'              => 'Purchase against Prepayment',
  'checkout_payment_paypal'           => 'Purchase via Paypal',
  'checkout_payment'                  => 'Payment Method',
  'checkout_paypal_forward'           => 'You will be forwarded to Paypal\! Please wait\&hellip\;',
  'checkout_paypal_button'            => 'Go to paypal',
  'checkout_paypal_no_forward'        => 'Please click the button to proceed!',
  'paypal_return_message'             => 'Thank you for purchasing useless stuff!',
  'checkout_history_back'             => 'Back to Shop',
  'checkout_mail_error'               => 'Order could not be sent',
  'checkout_mail_success'             => 'Order was successfully sent',
  'checkout_mail_email_error'         => 'Email is invalid',
  'checkout_mail_affirmation_error'   => 'Order was successfully sent but could not sent affirmation mail',
  'checkout_mail_affirmation_success' => 'Order and affirmation were successfully sent.',
  'checkout_mail_field_error'         => 'Please fill out the following required fields:'
  );
  return $lang[$what];
}

function yab_shop_mail_lang($what)
{
  $lang = array(
  'admin_mail_subject'              => 'Shop Order',
  'admin_mail_pre_products'         => 'Someone has ordered something:',
  'admin_mail_after_products'       => 'End of order mail',
  'affirmation_mail_subject'        => 'Your Shop Order',
  'affirmation_mail_pre_products'   => 'You has ordered the following:',
  'affirmation_mail_after_products' => 'Please give me all your money!'
  );
  return $lang[$what];
}
?>