Advertisement
Guest User

Untitled

a guest
Nov 20th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.53 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <config>
  3. <modules>
  4. <Sns_Ajaxcart>
  5. <version>1.0.0</version>
  6. </Sns_Ajaxcart>
  7. </modules>
  8. <global>
  9. <models>
  10. <ajaxcart>
  11. <class>Sns_Ajaxcart_Model</class>
  12. <resourceModel>ajaxcart_mysql4</resourceModel>
  13. </ajaxcart>
  14. </models>
  15. <resources>
  16. <ajaxcart_setup>
  17. <setup>
  18. <module>Sns_Ajaxcart</module>
  19. </setup>
  20. <connection>
  21. <use>core_setup</use>
  22. </connection>
  23. </ajaxcart_setup>
  24. <ajaxcart_write>
  25. <connection>
  26. <use>core_write</use>
  27. </connection>
  28. </ajaxcart_write>
  29. <ajaxcart_read>
  30. <connection>
  31. <use>core_read</use>
  32. </connection>
  33. </ajaxcart_read>
  34. </resources>
  35. <blocks>
  36. <ajaxcart>
  37. <class>Sns_Ajaxcart_Block</class>
  38. </ajaxcart>
  39. <!-- override block Mage_Wishlist_Block_Customer_Sidebar -->
  40. <wishlist>
  41. <rewrite>
  42. <customer_sidebar>Sns_Ajaxcart_Block_Wishlist_Customer_Sidebar</customer_sidebar>
  43. </rewrite>
  44. </wishlist>
  45. </blocks>
  46. <helpers>
  47. <ajaxcart>
  48. <class>Sns_Ajaxcart_Helper</class>
  49. </ajaxcart>
  50. </helpers>
  51. <helpers>
  52. <!-- override helper Mage_Core_Helper_Url -->
  53. <core>
  54. <rewrite>
  55. <url>Sns_Ajaxcart_Helper_Core_Url</url>
  56. </rewrite>
  57. </core>
  58. <!-- override helper Mage_Checkout_Helper_Cart -->
  59. <!--<checkout>
  60. <rewrite>
  61. <cart>Sns_Ajaxcart_Helper_Checkout_Cart</cart>
  62. </rewrite>
  63. </checkout>-->
  64. <ajaxcart>
  65. <rewrite>
  66. <product_compare>Sns_Ajaxcart_Helper_Catalog_Product_Compare</product_compare>
  67. </rewrite>
  68. </ajaxcart>
  69. </helpers>
  70. <events>
  71. <controller_action_postdispatch_checkout_cart_add>
  72. <observers>
  73. <ajaxcart>
  74. <type>singleton</type>
  75. <class>ajaxcart/observer</class>
  76. <method>addToCart</method>
  77. </ajaxcart>
  78. </observers>
  79. </controller_action_postdispatch_checkout_cart_add>
  80. <controller_action_postdispatch_checkout_cart_delete>
  81. <observers>
  82. <ajaxcart>
  83. <type>singleton</type>
  84. <class>ajaxcart/observer</class>
  85. <method>removeProduct</method>
  86. </ajaxcart>
  87. </observers>
  88. </controller_action_postdispatch_checkout_cart_delete>
  89. <controller_action_postdispatch_checkout_cart_updatePost>
  90. <observers>
  91. <ajaxcart>
  92. <type>singleton</type>
  93. <class>ajaxcart/observer</class>
  94. <method>updateCart</method>
  95. </ajaxcart>
  96. </observers>
  97. </controller_action_postdispatch_checkout_cart_updatePost>
  98. <controller_action_postdispatch_checkout_cart_updateItemOptions>
  99. <observers>
  100. <ajaxcart>
  101. <type>singleton</type>
  102. <class>ajaxcart/observer</class>
  103. <method>updateCart</method>
  104. </ajaxcart>
  105. </observers>
  106. </controller_action_postdispatch_checkout_cart_updateItemOptions>
  107. <controller_action_postdispatch_wishlist_index_remove>
  108. <observers>
  109. <ajaxcart>
  110. <type>singleton</type>
  111. <class>ajaxcart/observer</class>
  112. <method>removeWish</method>
  113. </ajaxcart>
  114. </observers>
  115. </controller_action_postdispatch_wishlist_index_remove>
  116. <controller_action_postdispatch_catalog_product_compare_remove>
  117. <observers>
  118. <ajaxcart>
  119. <type>singleton</type>
  120. <class>ajaxcart/observer</class>
  121. <method>removeProductCompare</method>
  122. </ajaxcart>
  123. </observers>
  124. </controller_action_postdispatch_catalog_product_compare_remove>
  125. <controller_action_postdispatch_catalog_product_compare_clear>
  126. <observers>
  127. <ajaxcart>
  128. <type>singleton</type>
  129. <class>ajaxcart/observer</class>
  130. <method>clearProductCompare</method>
  131. </ajaxcart>
  132. </observers>
  133. </controller_action_postdispatch_catalog_product_compare_clear>
  134.  
  135. <controller_action_postdispatch_catalog_product_view>
  136. <observers>
  137. <ajaxcart>
  138. <type>singleton</type>
  139. <class>ajaxcart/observer</class>
  140. <method>addOptions</method>
  141. </ajaxcart>
  142. </observers>
  143. </controller_action_postdispatch_catalog_product_view>
  144. <controller_action_postdispatch_checkout_cart_index>
  145. <observers>
  146. <ajaxcart>
  147. <type>singleton</type>
  148. <class>ajaxcart/observer</class>
  149. <method>Wishtocheckout</method>
  150. </ajaxcart>
  151. </observers>
  152. </controller_action_postdispatch_checkout_cart_index>
  153. <controller_action_postdispatch_wishlist_index_cart>
  154. <observers>
  155. <ajaxcart>
  156. <type>singleton</type>
  157. <class>ajaxcart/observer</class>
  158. <method>addToCartWishList</method>
  159. </ajaxcart>
  160. </observers>
  161. </controller_action_postdispatch_wishlist_index_cart>
  162. <controller_action_postdispatch_wishlist_index_configure>
  163. <observers>
  164. <ajaxcart>
  165. <type>singleton</type>
  166. <class>ajaxcart/observer</class>
  167. <method>addOptionsWishList</method>
  168. </ajaxcart>
  169. </observers>
  170. </controller_action_postdispatch_wishlist_index_configure>
  171. <checkout_cart_product_add_after>
  172. <observers>
  173. <ajaxcart>
  174. <type>singleton</type>
  175. <class>ajaxcart/observer</class>
  176. <method>getNameProduct</method>
  177. </ajaxcart>
  178. </observers>
  179. </checkout_cart_product_add_after>
  180. <controller_action_postdispatch_wishlist_index_add>
  181. <observers>
  182. <ajaxcart>
  183. <type>singleton</type>
  184. <class>ajaxcart/observer</class>
  185. <method>addWishlist</method>
  186. </ajaxcart>
  187. </observers>
  188. </controller_action_postdispatch_wishlist_index_add>
  189. <controller_action_postdispatch_catalog_product_compare_add>
  190. <observers>
  191. <ajaxcart>
  192. <type>singleton</type>
  193. <class>ajaxcart/observer</class>
  194. <method>addProductCompare</method>
  195. </ajaxcart>
  196. </observers>
  197. </controller_action_postdispatch_catalog_product_compare_add>
  198. </events>
  199. </global>
  200. <frontend>
  201. <!-- //ssl : https://
  202. <secure_url>
  203. <ajaxcart>/ajaxcart/</ajaxcart>
  204. </secure_url>
  205. -->
  206.  
  207. <secure_url>
  208. <checkout_cart>/checkout/cart</checkout_cart>
  209. <checkout>/checkout/cart</checkout>
  210. </secure_url>
  211.  
  212. <routers>
  213. <ajaxcart>
  214. <use>standard</use>
  215. <args>
  216. <module>Sns_Ajaxcart</module>
  217. <frontName>ajaxcart</frontName>
  218. </args>
  219. </ajaxcart>
  220. </routers>
  221. <layout>
  222. <updates>
  223. <ajaxcart>
  224. <file>sns/ajaxcart.xml</file>
  225. </ajaxcart>
  226. </updates>
  227. </layout>
  228. <translate>
  229. <modules>
  230. <Sns_Ajaxcart>
  231. <files>
  232. <default>Sns_Ajaxcart.csv</default>
  233. </files>
  234. </Sns_Ajaxcart>
  235. </modules>
  236. </translate>
  237. </frontend>
  238. <admin>
  239. <routers>
  240. <ajaxcart>
  241. <use>admin</use>
  242. <args>
  243. <module>Sns_Ajaxcart</module>
  244. <frontName>ajaxcart</frontName>
  245. </args>
  246. </ajaxcart>
  247. </routers>
  248. </admin>
  249. <adminhtml>
  250. <acl>
  251. <resources>
  252. <all>
  253. <title>Allow Everything</title>
  254. </all>
  255. <admin>
  256. <children>
  257. <ajaxcart>
  258. <title>ajaxcart Module</title>
  259. <sort_order>10</sort_order>
  260. </ajaxcart>
  261.  
  262. <system>
  263. <children>
  264. <config>
  265. <children>
  266. <ajaxcart_cfg translate="title" module="ajaxcart">
  267. <title>SNS Ajax Cart</title>
  268. </ajaxcart_cfg>
  269. </children>
  270. </config>
  271. </children>
  272. </system>
  273. </children>
  274. </admin>
  275. </resources>
  276. </acl>
  277. <layout>
  278. <updates>
  279. <ajaxcart>
  280. <file>ajaxcart.xml</file>
  281. </ajaxcart>
  282. </updates>
  283. </layout>
  284. <translate>
  285. <modules>
  286. <Sns_Ajaxcart>
  287. <files>
  288. <default>Sns_Ajaxcart.csv</default>
  289. </files>
  290. </Sns_Ajaxcart>
  291. </modules>
  292. </translate>
  293. </adminhtml>
  294. <default>
  295. <ajaxcart_cfg>
  296. <general>
  297. <enable>1</enable>
  298. <usingImgFly>1</usingImgFly>
  299. <scrollToCart>1</scrollToCart>
  300. <ajax_for_compare>1</ajax_for_compare>
  301. <ajax_for_wishlist>1</ajax_for_wishlist>
  302. <ajax_for_update>1</ajax_for_update>
  303. </general>
  304. <show_confirm_setting>
  305. <show_confirm>1</show_confirm>
  306. <time_countdown>50</time_countdown>
  307. <show_product_in_confirm>1</show_product_in_confirm>
  308. </show_confirm_setting>
  309. <mini_cart_setting>
  310. <mini_cart_display>1</mini_cart_display>
  311. <mini_cart_effect_type>blind</mini_cart_effect_type>
  312. <mini_cart_effect_duration>0.5</mini_cart_effect_duration>
  313. <list_type>recent</list_type>
  314. <product_image_display>1</product_image_display>
  315. <product_image_linkable>1</product_image_linkable>
  316. <product_image_width>150</product_image_width>
  317. <product_image_height>150</product_image_height>
  318. <product_title_display>1</product_title_display>
  319. <product_title_linkable>1</product_title_linkable>
  320. <product_description_display>1</product_description_display>
  321. <product_description_src>1</product_description_src>
  322. <product_description_strip_tags>1</product_description_strip_tags>
  323. <product_description_max_length>200</product_description_max_length>
  324. <product_price_display>1</product_price_display>
  325. <product_rating_summary_display>1</product_rating_summary_display>
  326. <product_quantity_display>1</product_quantity_display>
  327. <product_quantity_input_display>1</product_quantity_input_display>
  328. </mini_cart_setting>
  329. <product_display_setting>
  330.  
  331. </product_display_setting>
  332. </ajaxcart_cfg>
  333. </default>
  334. </config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement