xpathArray(array(".//h2[contains(@class, 'title')]/a/@href", ".//div[contains(@class, 'organic-offer-wrapper')]/a[contains(@href, 'product-detail')]/@href"))) return $urls; $html = $this->dom->saveHTML(); // category page if (!preg_match('/aggregationSearchPage\(({.+?}\));/ims', $html, $matched)) return array(); if (!preg_match('/DATA: ({.+?}]})\s\s\s/ims', $matched[1], $matched_data)) return array(); if (!$items = json_decode(trim($matched_data[1]), true)) return array(); if (!isset($items['itemList'])) return array(); $urls = array(); foreach ($items['itemList'] as $item) { if (!isset($item['productDetailUrl'])) continue; $urls[] = $item['productDetailUrl']; } return $urls; } public function parseTitle() { return $this->xpathScalar(".//h1"); } public function parseDescription() { return $this->xpathScalar("//div[@id='J-rich-text-description']/text()"); } public function parsePrice() { if ($price = $this->xpathScalar(".//*[@class='ma-spec-price ma-price-promotion']")) return $price; if ($price = $this->xpathScalar(".//meta[@property='og:price:amount']/@content")) { $this->currency = $this->xpathScalar(".//meta[@property='og:price:currency']/@content"); } return $price; } public function parseOldPrice() { if ($price = $this->xpathScalar(".//*[@class='ma-spec-price ma-price-original']")) return $price; } public function parseManufacturer() { } public function parseImg() { $image = $this->xpathScalar(".//meta[@property='og:image']/@content"); if ($image && !preg_match('/^https?:/', $image)) return 'https:' . $image; } public function parseImgLarge() { } public function parseExtra() { $extra = array(); $extra['features'] = array(); $names = $this->xpathArray(".//*[@class='do-entry-list']//dt[@class='do-entry-item']"); $values = $this->xpathArray(".//*[@class='do-entry-list']//dd[@class='do-entry-item-val']"); $feature = array(); for ($i = 0; $i < count($names); $i++) { $feature['name'] = trim(\sanitize_text_field($names[$i]), ':'); $feature['value'] = \sanitize_text_field($values[$i]); $extra['features'][] = $feature; } return $extra; } public function isInStock() { return true; } } jjjasam - Best2buy.in
Compare Items
Please, add items to this compare group or choose not empty group

UPTO 50% OFF TO ALL VIRTUAL PRODUCTS

Author Name: jjjasam

Author Subtitle Example
Author
jjjasam
https://best2buy.in

Product

Product Review

Product Coupons

0 Ratings

Enjoy Up To 75% Discount On Audio Technica Headphones At Daraz

IMPRESSIVE SOUND QUALITY IS THE ULTIOAL & assive the noise isolating, NOT active noise the world it cancellation(ANC).

$ 699.00 - $ 999.00

Expires 2019-08-23

0 Ratings

10% Off Laptop & 2-in-1 Deals, Asus Winter Bumper Sells Offer.

A laptop for every lifestyle. Looking for new laptops? You’ve come to the right place. The ASUS laptop offers the…

$ 699.00 - $ 999.00

Expires 2019-08-23

0 Ratings

Up To 10%-20% Off On Few Laptop Hybrid Model & All-in-One Deals.

With 8th Gen Intel® Core™ processor. This space saving desktop design is perfect for small spaces and ideal for editing…

$ 699.00 - $ 999.00

Expires 2019-08-23

0 Ratings

Deal of the Day: Upto 45%-65% Off on Various Mobile Accessories.

More then 1k exciting offer and save money on Mobiles and Tablets accessories from top online stores like Amazon, Flipkart,…

$ 699.00 - $ 999.00

Expires 2019-08-23

0 Ratings

Mobile Deals – Upto $100 Off Offers That Will Blow Your Mind.

Get Upto $100 Off On Top Selling Mobiles. Offer Includes few selected brand and model. Also Avail EMI Offer By…

$ 699.00 - $ 999.00

Expires 2019-08-23

0 Ratings

Exchange Deals Upto 30% Off With Exchange Offers On Phone.

Get Flat $129 At Amazon for apple, nokia, vivo, samsung and more. Also Avail Upto $1,00 Off On Exchange Of…

$ 699.00 - $ 999.00

Expires 2019-08-23

0 Ratings

Enjoy Up To 70% Discount On Audio Technica Headphones At Daraz

IMPRESSIVE SOUND QUALITY IS THE ULTIOAL & assive the noise isolating, NOT active noise the world it cancellation(ANC).

$ 699.00 - $ 999.00

Expires 2019-08-23

0 Ratings

10% Off Laptop & 2-in-1 Deals, Asus Winter Bumper Sells Offer.

$ 699.00 - $ 999.00

Expires 2019-08-23

0 Ratings

Up To 10%-20% Off On Few Laptop Hybrid Model All One Deals.

$ 699.00 - $ 999.00

Expires 2019-08-23

Blog

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

1 Comments

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

1 Comments